Dear Forum,
In our organization 100 user is existing. Now i want to change password for 100 user in linux server. Pls help to write script for changing password.
Regads//
Taifur
Dear Forum,
In our organization 100 user is existing. Now i want to change password for 100 user in linux server. Pls help to write script for changing password.
Regads//
Taifur
#echo "username:newpasswd" | /usr/sbin/chpasswd
# echo "newpassword" | passwd --stdin username
UNIX/LINUX TECH NOTES: Changing Linux user's password with script
Dear Honglus,
Thanks for ur reply.
I want to create a script for password changing which will take password from text file.
Meaning , suppose i will write some password like , user = XYZ password = 1234 in text file.
How can i retrieve the password for rquired user by script ?
Pls help about this regard as soon as possible.
Waiting for feedback.
Rgds//
Taifur
Should someone point out to you that doing this is ridiculously bad? Clear text passwords are a no-no.