Quoting John Haxby <jch@xxxxxxxxxxxxxxx>: > Tony Arcus wrote: > > >Anybody got a script that would read a txt type file with user names and > >passwds, adds then and sets up the passwd? > >I have schools with hundreds of students and don't what to type this by > hand. > > > > > while read name password; do > useradd -p "$password" "$name" > done < file > If you dont have encrypted passwords in the file, you can use a bit modyfied version of John Haxby's script, while read name password; do useradd "$name" echo "$password" | passwd --stdin "$name" done < file -- Sanjeewa. ------------------------------------------------- [ VIP mail ] http://www.viplanka.com -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list