explicitly set umask and document effect

This commit is contained in:
Michel Oosterhof 2016-04-26 15:16:49 +00:00
parent 10c9474392
commit 4de3455bde
2 changed files with 5 additions and 2 deletions

View File

@ -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```
*

View File

@ -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