mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-07-11 08:03:04 +02:00
Forbid changing root password
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user