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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
# 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
echo Please use the following syntax:
echo addtoall USERNAME PASSWORD
echo PASSWORD must be the crypted version of the users password
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,