mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-31 12:04:24 +01:00
explicitly set umask and document effect
This commit is contained in:
@@ -88,3 +88,6 @@ $ cd cowrie/data
|
||||
$ 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..."
|
||||
if [ $AUTHBIND_ENABLED = "no" ]
|
||||
then
|
||||
twistd -l log/cowrie.log --pidfile cowrie.pid cowrie
|
||||
twistd -l log/cowrie.log --umask 0077 --pidfile cowrie.pid cowrie
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user