Operating System - HP-UX
1832207 Members
2410 Online
110040 Solutions
New Discussion

Re: adding new unix user-ids across the cluster

 
SOLVED
Go to solution
RobertCarback
Frequent Advisor

adding new unix user-ids across the cluster

I am about to create a cluster by adding a second identical server to our existing first and utilizing Serviceguard. Is there a way, when I create a new user on one server that it can replicate to the other server?
8 REPLIES 8
Pupil_1
Trusted Contributor

Re: adding new unix user-ids across the cluster

use the useradd command with the same details on both the machines.
There is always something new to learn everyday !!
F Verschuren
Esteemed Contributor
Solution

Re: adding new unix user-ids across the cluster

there is no standard tool
whene the system is not secure and the users has to be the same a rcp of the passwd wil work. but the best ting to do is to de the useradd twise

useradd [-u uid [-o] ] [-g group] [-G group [, group...]] [-d dir]
[-s shell] [-c comment] [-m [-k skel_dir]] [-f inactive]
[-e expire] login
rsh [othernode] useradd [-u uid [-o] ] [-g group] [-G group [, group...]] [-d dir]
[-s shell] [-c comment] [-m [-k skel_dir]] [-f inactive]
[-e expire] login
F Verschuren
Esteemed Contributor

Re: adding new unix user-ids across the cluster

rsh has to be remsh ofcause
Steven Schweda
Honored Contributor

Re: adding new unix user-ids across the cluster

Don't people use things like NIS to solve
problems like this?
Wouter Jagers
Honored Contributor

Re: adding new unix user-ids across the cluster

Hiya,

Easiest for you would be making a little script which does the useradd command on both servers using ssh (preferred) or remsh (insecure!) for the remote one.

This way you can automate what FV explained above, just using a variable for the username.

It would be a good idea to first have your script check which is the next 'free' uid on both machines and then issue the passwd commands with this uid and the username.

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
A. Clay Stephenson
Acclaimed Contributor

Re: adding new unix user-ids across the cluster

There is no way to answer your question because it lacks detail. Are you using NIS, NIS+, LDAP, standard passwords, trusted? Are the home directories local or NFS mounted (possibly automounted)?

In any event, this is one of those things that should have been addressed when your cluster was setup and a customized standard script should have been created. There is no standard tool to do this because every environment is different.
If it ain't broke, I can fix that.
RobertCarback
Frequent Advisor

Re: adding new unix user-ids across the cluster

thanks
RobertCarback
Frequent Advisor

Re: adding new unix user-ids across the cluster

thank you