How do i create an a/c at all nodes in the cluster
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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???
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.
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
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.
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.
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,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.