Re: [SLE] Mass passwd change
![](https://seccdn.libravatar.org/avatar/bca153bca77c3a8cd7775fda3beba111.jpg?s=120&d=mm&r=g)
21 Nov
2003
21 Nov
'03
15:50
--- Francois Maisonneuve
hello,
I'm looking for a way to change a common password for several users in one passe via a script or something else.
does anyone have an idea ?
Assuming you have the usernames mapped into a text file, you could do: while read username; do echo "newpassword" | passwd --stdin $username done < ./list_of_usernames_in_a_file You can type the above at the CLI (bash). You'll need root priveliges. HTH, -- Thomas Adam __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/
7514
Age (days ago)
7514
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thomas Adam