mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
ubuntu compatible password change function
This commit is contained in:
parent
9784389766
commit
c1dad6ce08
5 changed files with 22 additions and 16 deletions
|
@ -33,7 +33,7 @@ is_object_unsuspended 'user' 'USER' "$user"
|
|||
#----------------------------------------------------------#
|
||||
|
||||
# Get shell full path
|
||||
shell_path=$(/usr/bin/chsh --list-shells | grep -w "$shell" |head -n1)
|
||||
shell_path=$(grep -w "$shell" /etc/shells | head -n1)
|
||||
|
||||
# Changing passwd file
|
||||
/usr/bin/chsh -s "$shell_path" "$user" &>/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue