Bulk user add

Hello

I need to add 10 users to 500+ servers, is there a way that I can script this to alter /etc/passwd /etc/shadow. So I am looking for some advice on automation of password setting and expiring password. That way I can for loop a server list and ssh to each one and run this script? Or any other ideas?

[318 byte] By [Viper_adm] at [2007-11-26 10:00:53]
# 1
NIS, NIS+, Or LDAPalan
alanpae at 2007-7-7 1:30:27 > top of Java-index,General,Talk to the Sysop...
# 2

Here's a post with some sample perl code. *Please* read the warnings in the thread about locking. It's not the sexy part, so many folks don't put it in. Then the password file suddenly gets truncated.... oops.

http://groups.google.com/group/comp.unix.solaris/browse_frm/thread/f795d3e0e8c7 68f

Also the code changes the password for an existing user. It's actually a fair bit simpler to add a new account. You still need to lock, though.

--

Darren

Darren_Dunham at 2007-7-7 1:30:27 > top of Java-index,General,Talk to the Sysop...