mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
fix permissions
This commit is contained in:
@ -6,9 +6,6 @@
|
|||||||
# v0.20 by mo, DTAG, 2015-01-20 #
|
# v0.20 by mo, DTAG, 2015-01-20 #
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
# Let's fit more on the screen
|
|
||||||
setupcon
|
|
||||||
|
|
||||||
# Let's make sure there is a warning if running for a second time
|
# Let's make sure there is a warning if running for a second time
|
||||||
if [ -f install.log ];
|
if [ -f install.log ];
|
||||||
then fuECHO "### Running more than once may complicate things. Erase install.log if you are really sure."
|
then fuECHO "### Running more than once may complicate things. Erase install.log if you are really sure."
|
||||||
@ -129,8 +126,8 @@ if [ -f /etc/init/ssh.conf ];
|
|||||||
then echo "### Already enabled. Exiting."
|
then echo "### Already enabled. Exiting."
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
mv /etc/init/ssh.conf.disable /etc/init/ssh.conf
|
sudo mv /etc/init/ssh.conf.disable /etc/init/ssh.conf
|
||||||
service ssh start
|
sudo service ssh start
|
||||||
EOF
|
EOF
|
||||||
chmod 700 /home/tsec/ssh_enable.sh
|
chmod 700 /home/tsec/ssh_enable.sh
|
||||||
chown tsec:tsec /home/tsec/ssh_enable.sh
|
chown tsec:tsec /home/tsec/ssh_enable.sh
|
||||||
|
Reference in New Issue
Block a user