mirror of https://github.com/cowrie/cowrie.git
explicitly set umask and document effect
This commit is contained in:
parent
10c9474392
commit
4de3455bde
|
@ -88,3 +88,6 @@ $ cd cowrie/data
|
||||||
$ ssh-keygen -t dsa -b 1024 -f ssh_host_dsa_key
|
$ ssh-keygen -t dsa -b 1024 -f ssh_host_dsa_key
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Default file permissions
|
||||||
|
To make Cowrie logfiles public readable, change the ```--umask 0077``` option in start.sh into ```--umask 0022```
|
||||||
|
*
|
||||||
|
|
4
start.sh
4
start.sh
|
@ -28,7 +28,7 @@ fi
|
||||||
echo "Starting cowrie in the background..."
|
echo "Starting cowrie in the background..."
|
||||||
if [ $AUTHBIND_ENABLED = "no" ]
|
if [ $AUTHBIND_ENABLED = "no" ]
|
||||||
then
|
then
|
||||||
twistd -l log/cowrie.log --pidfile cowrie.pid cowrie
|
twistd -l log/cowrie.log --umask 0077 --pidfile cowrie.pid cowrie
|
||||||
else
|
else
|
||||||
authbind --deep twistd -l log/cowrie.log --pidfile cowrie.pid cowrie
|
authbind --deep twistd -l log/cowrie.log --umask 0077 --pidfile cowrie.pid cowrie
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue