On Mon, Jan 21, 2002 at 03:34:38PM +0000, MJ Ray wrote:
Ted Harding:
$ for user in `cat usernames`; do usermod -p $user $user; done
Not sure this will help, since it looks as though the password argument to usermod -p has to be already encrypted:
Thanks to Adam:
for user in $(cat usernames); do usermod -p $(mkpasswd $user aa) $user done
awwwww... how boring, all salted with the same salt, that's no fun :p
Brett.