Following my earlier post: -
TIL passwd on Ubuntu no longer supports the stdin option
I found a better way ...
groupadd wasadmins
adduser --quiet --disabled-password --ingroup wasadmins -shell /bin/bash --home /home/wasadmin --gecos "wasadmin" wasadmin
echo "wasadmin:passw0rd!" | chpasswd
No comments:
Post a Comment