Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
ltp
/
37550cf5a86c7ca7424a2a318dd64e550f13f5df
/
.
/
testcases
/
commands
/
su
/
su_set_passwd
blob: e8f0d2f500f7cc8d84ed807f63dc6a994551a78e [
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 $
?