mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
adjust group and permissions for /data
This commit is contained in:
@ -792,7 +792,13 @@ systemctl enable tpot
|
||||
|
||||
# Let's take care of some files and permissions
|
||||
fuBANNER "Permissions"
|
||||
chmod 760 -R /data
|
||||
chmod 770 -R /data
|
||||
if [ "$myTPOT_DEPLOYMENT_TYPE" == "iso" ];
|
||||
then
|
||||
usermod -a -G tpot tsec
|
||||
else
|
||||
usermod -a -G tpot $(who am i | awk '{ print $1 }')
|
||||
fi
|
||||
chown tpot:tpot -R /data
|
||||
chown tsec:tsec -R /home/tsec/.ssh
|
||||
chmod 644 -R /data/nginx/conf
|
||||
|
Reference in New Issue
Block a user