LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do i create an a/c at all nodes in the cluster (http://www.linuxquestions.org/questions/linux-networking-3/how-do-i-create-an-a-c-at-all-nodes-in-the-cluster-60098/)

dogma 05-16-2003 08:44 AM

How do i create an a/c at all nodes in the cluster
 
Hi,

I have a BeoWulf 24node cluster. I have a user a/c in the main 'gateway'. But I cannot use this info to log into the nodes. So how do i create an a/c in the nodes. :cry:

The admn is a newbie and so am I. Does 'useradd' have features to make simultaneous a/c's at all the nodes??

I can ping the machines and they are connected. So how do I SSH into them???

Do reply asap.
Thanks
:newbie:

david_ross 05-17-2003 12:59 PM

Re: How do i create an a/c at all nodes in the cluster
 
Quote:

Originally posted by dogma
Hi,

I have a BeoWulf 24node cluster. I have a user a/c in the main 'gateway'. But I cannot use this info to log into the nodes. So how do i create an a/c in the nodes. :cry:

I think I suggeseted this to you before - why not use a centralised password database?
Quote:

The admn is a newbie and so am I. Does 'useradd' have features to make simultaneous a/c's at all the nodes??

No but you could write a script to execute a useradd command on each bos using ssh.
Quote:

I can ping the machines and they are connected. So how do I SSH into them???

If you have the ssh server installed and running on the server and the ssh client installed on the client machine then:
ssh server.name.or.ip.address

dogma 05-19-2003 09:06 AM

Hi and thanks for the info david.

But,
1) could you explain in brief how ldap works?
Whether a newbie can use it to create a single a/c that wud work in all the nodes?

2) I did try using the "gui - User manager", but to no avail.
I was able to access only the gateway but not the nodes.
I did check all the settings, but wasnt able to figure out how
to create a common login and pwd for all the nodes

3) could you give me a sample script to create the same
login and pwd at all the nodes.

Thanks for the help.
Do reply asap

Thanks again.

david_ross 05-19-2003 10:12 AM

1) Take a look at:
http://www.openldap.org/doc/admin21/...tory%20service

I wouldn't implement it for only a couple of users though.

2) Something like:
Code:

#!/bin/bash

# Check we have the required data
if [ $1 ] && [ $2 ]; then
# Add the user locally
useradd $1 -p $2

# Create an entry for each host below
ssh root@somehost useradd $1 -p $2
ssh root@anotherhost useradd $1 -p $2
ssh root@thirdhost useradd $1 -p $2
ssh root@lasthost useradd $1 -p $2

# If the user hass called the script incorrectly then help them
else
echo
echo Please use the following syntax:
echo addtoall USERNAME PASSWORD
echo
echo PASSWORD must be the crypted version of the users password
echo
fi

This assumes you have ssh running on all other hosts with passwordless (otherwise you need to type the password each time) logins for root.

acid_kewpie 05-19-2003 10:21 AM

if you just want to use a basic network authentication like NIS, which is a doddle to set up, you can just use a PAM module to automatically create any required directories when a user logs in to a node for the first time, not sure what's it's called off hand, but there is info about this in the NIS howto. alternateivly, share a /home partition with the network anyway,


All times are GMT -5. The time now is 01:49 PM.