diff --git a/add_new_user.sh b/add_new_user.sh index 9e527ef..6883931 100755 --- a/add_new_user.sh +++ b/add_new_user.sh @@ -97,7 +97,7 @@ if $password_needed ; then # - webadmin # - - if [[ "$user_name" = 'sysadm' ]]; then + if [[ "$user_name" = 'webadmin' ]]; then perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$6\\\$P1UvKv/0\\\$0hWHiUXQTrNl5SFf52iAY1qDYsJFhjHaVC6F6BuvazcNXkzjAcnuX5PMml5DLh4tyFpqVdPpCyAyd92YypNbu/:\2#" /etc/shadow # - sysadm