Additional security guidance
This commit is contained in:
parent
ba3be6aab5
commit
93383ded9d
|
@ -692,7 +692,22 @@ function store_passwords {
|
|||
sel=$?
|
||||
case $sel in
|
||||
0)
|
||||
if [ -f /root/.nostore ]; then
|
||||
read_config_param "MY_USERNAME"
|
||||
if [ ! -f /home/$MY_USERNAME/.ssh/authorized_keys ]; then
|
||||
dialog --title $"Store Passwords" \
|
||||
--msgbox $"\nYou should first enable key based ssh login to improve security" 8 60
|
||||
return
|
||||
fi
|
||||
if [[ $SSH_PASSWORDS == 'yes' ]]; then
|
||||
dialog --title $"Store Passwords" \
|
||||
--msgbox $"\nYou should disable ssh passwords to improve security" 8 60
|
||||
return
|
||||
fi
|
||||
${PROJECT_NAME}-pass --enable yes
|
||||
dialog --title $"Store Passwords" \
|
||||
--msgbox $"\nUser passwords will now be stored on the system" 8 60
|
||||
fi
|
||||
return
|
||||
;;
|
||||
1)
|
||||
|
|
Loading…
Reference in New Issue