Forbid changing root password

This commit is contained in:
dpeca
2020-03-24 20:40:47 +01:00
committed by GitHub
parent 00e1f46276
commit c915bff32e

View File

@@ -22,6 +22,9 @@ source $VESTA/conf/vesta.conf
# Verifications #
#----------------------------------------------------------#
if [ "$user" = "root" ]; then
check_result $E_FORBIDEN "Changing root password is forbiden"
fi
check_args '2' "$#" 'USER PASSWORD'
is_format_valid 'user'
is_object_valid 'user' 'USER' "$user"