diff options
author | Florin Grad <florin@mandriva.com> | 2001-11-08 11:17:38 +0000 |
---|---|---|
committer | Florin Grad <florin@mandriva.com> | 2001-11-08 11:17:38 +0000 |
commit | de4f8ccd5d0df29be4f254812efaec0523431321 (patch) | |
tree | af8802df4573695642010479aaa0641a4d8f7848 /init-sh/lib.sh | |
parent | 61d382840a43f250b6f1acc52590deafcb02b78c (diff) | |
download | msec-de4f8ccd5d0df29be4f254812efaec0523431321.tar msec-de4f8ccd5d0df29be4f254812efaec0523431321.tar.gz msec-de4f8ccd5d0df29be4f254812efaec0523431321.tar.bz2 msec-de4f8ccd5d0df29be4f254812efaec0523431321.tar.xz msec-de4f8ccd5d0df29be4f254812efaec0523431321.zip |
add snf in RootSshLogin function
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r-- | init-sh/lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh index 70102ff..414ff5f 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -299,7 +299,7 @@ AllowReboot() { RootSshLogin () { echo -n "Setting up the root ssh login : " - if [[ $1 == 4 || $1 == 5 ]]; then + if [[ $1 == 4 || $1 == 5 || $1 == snf ]]; then /bin/sed 's/PermitRootLogin yes/PermitRootLogin no/' < /etc/ssh/sshd_config > /etc/ssh/sshd_config.new mv /etc/ssh/sshd_config.new /etc/ssh/sshd_config chmod 0600 /etc/ssh/sshd_config |