Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
ltp
/
ec6edca7aa42b6affd989ef91b5897f96795e40f
/
.
/
testcases
/
commands
/
su
/
su_set_passwd
blob: 40ec3051dd991008a78170f3b3fa90ae77bb8e09 [
file
] [
log
] [
blame
]
#!/bin/sh
#
# Set Password for a specific new user
# This script should be run as 'root'
#
# Example:
# ./su_set_passwd USER ENCRYPTED_PASSWD
#
USER
=
$1
ENCRYPTED_PASSWD
=
$2
usermod
-
p $ENCRYPTED_PASSWD $USER
exit $
?