On Mon, 3 Feb 2003, Rohan Almeida wrote:

> "mahesh  raghunathan" <[EMAIL PROTECTED]> thus wrote:
> > Is there any way to change the passwd in a bulk. I have 125 users 
> > in my linux box. I wanted to change the passwds for all these 
> > users in batch.
> > Any command or utilities available ?
> 
> Not really...

what's wrong with running passwd in a loop with the --stdin flag?

for i in `cat /etc/passwd | awk -F: '$3>=500{print $1}'; do
        echo -e "new_password" | passwd --stdin $i
done

This has to be run as root.

Philip

-- 
Never drink from your finger bowl -- it contains only water.



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to