LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to make an account across different nodes in a cluster (https://www.linuxquestions.org/questions/linux-networking-3/how-to-make-an-account-across-different-nodes-in-a-cluster-215678/)

muneebs123 08-10-2004 03:48 AM

How to make an account across different nodes in a cluster
 
Hi
I am trying to make an account with the same userid and the same group id across different nodes on the cluster. How can i make them using a script or shell command so that i dont have to manually make them. remember that i have no passwordless ssh or rsh for the root

bastard23 08-11-2004 01:37 AM

How do you get root now? I would use pulic key authentication for ssh. http://mah.everybody.org/docs/ssh seems to be a good howto.
Then:

ssh-add; for h in host1 host2 host3; do ssh root@$h useradd -u 900 -g 900 username; done

Or, you could get the machines to use LDAP for user authentication/management.

Good Luck,
chris

damien 08-26-2004 04:39 PM

Is this so you can do things across the nodes simultaneously, like run an MPI program? On my cluster I NFS export /home/damien from the head node and mount it as /home/damien on the slave nodes. Then the ssh authorized_keys file is automatically available as well and you're off to the races.

Damien


All times are GMT -5. The time now is 04:43 PM.