Below chpasswd command can be used. Change username with the username to which you want to change password and password with the desired password you want to test.
echo "username:password" | chpasswd
For e.g. to change admin user password to testpwd, your command will look as follows
echo "admin:testpwd" | chpasswd
Keywords:
passwords changing modify modifying update updating oneline single
No comments:
Post a Comment