LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-16-2003, 08:44 AM   #1
dogma
LQ Newbie
 
Registered: May 2003
Location: Tuscaloosa, AL
Distribution: RedHat Rel 7.2 - 2.4.7-10
Posts: 27

Rep: Reputation: 15
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???

Do reply asap.
Thanks
 
Old 05-17-2003, 12:59 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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
 
Old 05-19-2003, 09:06 AM   #3
dogma
LQ Newbie
 
Registered: May 2003
Location: Tuscaloosa, AL
Distribution: RedHat Rel 7.2 - 2.4.7-10
Posts: 27

Original Poster
Rep: Reputation: 15
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.
 
Old 05-19-2003, 10:12 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 05-19-2003, 10:21 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make an account across different nodes in a cluster muneebs123 Linux - Networking 2 08-26-2004 04:39 PM
Cluster....which distro is best for the Nodes? KaptinKABOOM Linux - Software 7 06-14-2004 08:34 PM
rsh on Cluster nodes rudy3107 Linux - Software 0 07-22-2003 06:53 AM
how do i install RH9.0 on all nodes in a cluster? dogma Linux - Newbie 1 05-26-2003 05:48 PM
rsh between 2 nodes on a Linux Cluster marxsmann Linux - General 2 01-26-2003 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration