Hello everyone, I've received a couple of answers. Thanks to everyone who gave a hint about this. The question was: How can I change via script or similar the password for hundred of users without having to type it manually? The general consensus was to use "expect" in order to feed the standard "passwd" program. Other suggested to play with awk, sed or other utilities in order to change "/etc/shadow" as needed. As an example, here is a little piece of expect code that Mike Mann sent to me: -------------------------------------------------------------- spawn passwd david expect "New Password: " send "secret\r" expect "Re-enter new Password: " send "secret\r" expect "passwd: password successfully changed for david" -------------------------------------------------------------- Thanks to everyone for your help. Regards, David Arroyo _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Wed Jan 21 09:18:20 2004
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:26 EST