mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Forbid changing root password
This commit is contained in:
parent
00e1f46276
commit
c915bff32e
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ source $VESTA/conf/vesta.conf
|
||||||
# Verifications #
|
# Verifications #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
if [ "$user" = "root" ]; then
|
||||||
|
check_result $E_FORBIDEN "Changing root password is forbiden"
|
||||||
|
fi
|
||||||
check_args '2' "$#" 'USER PASSWORD'
|
check_args '2' "$#" 'USER PASSWORD'
|
||||||
is_format_valid 'user'
|
is_format_valid 'user'
|
||||||
is_object_valid 'user' 'USER' "$user"
|
is_object_valid 'user' 'USER' "$user"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue