Operating System - HP-UX
1832928 Members
2463 Online
110048 Solutions
New Discussion

Re: Script for adding new user in 50 servers

 
SOLVED
Go to solution
SKR_1
Trusted Contributor

Script for adding new user in 50 servers

Hi,

Can someone provide me the push script from one server to add a new user in almost 50 servers. Also password should automatically reach to the user Email address in same domain. User should change its own password after this.

.rhosts is configured, we can use remsh hosts in the script.

Sendmail is also configured to send the mail to the user EMail ID.

Thanks in advance

SKR
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: Script for adding new user in 50 servers

Hi:

Have a look at this recent query:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1217047

In particular, take note of Dusan's script that is attached therein.

Regards!

...JRF...

Steven Schweda
Honored Contributor

Re: Script for adding new user in 50 servers

Schemes like NIS (or LDAP) were designed to
obviate this sort of annoyance. Edit a file,
ypmake, relax.
rmueller58
Valued Contributor

Re: Script for adding new user in 50 servers

As I see this question, I am facing a similar issue down the road, we will be migration our Informix server over from a single HP/UX box to a pair of Linux boxes.
We want to manage accounts, printers from one interface entry and duplicate setup on the second box, either via remote shell or scp..

Thanks for the question.
Mark Ellzey
Valued Contributor

Re: Script for adding new user in 50 servers

SKR,

As mentioned before, NIS is specifically made for this purpose. In addition to managing userids, you can also manage NFS mounts via NIS automount maps.

Perhaps better would be LDAP. With LDAP, you can have common logins for both Windows and your Unix world. My site is currently moving to Linux workstations and we are installing them as LDAP clients to leverage our Windows domain servers to provide user authentication.

Regards,
Mark

SKR_1
Trusted Contributor

Re: Script for adding new user in 50 servers

Thanks to all of you.