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 |
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 |
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. |