adjust group and permissions for /data

This commit is contained in:
listbot
2019-05-08 11:16:48 +00:00
parent ce89e44474
commit c09547e3a4
6 changed files with 36 additions and 26 deletions

View File

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