1 #!/bin/sh 2 # 3 # Set Password for a specific new user 4 # This script should be run as 'root' 5 # 6 # Example: 7 # ./su_set_passwd USER ENCRYPTED_PASSWD 8 # 9 10 USER=$1 11 ENCRYPTED_PASSWD=$2 12 13 usermod -p $ENCRYPTED_PASSWD $USER 14 exit $? 15