LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-06-2007, 03:42 AM   #1
bhandu
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Rep: Reputation: 15
Exclamation Password Synchronization for clustered architecture


Hello All,
I have two Linux servers, which form a clustered architecture. Linux server 1 and Linux server 2 are the two Linux servers in this architecture.
Server 2 is failover server for Server 1 i.e. whenever Server 1 is down by any reason , the application of Server 1 starts running on Server 2.
Also during such failover, the users who all are present on Server 1 are automatically directed to Server 2 but this is transparent to the Users on this Server 1.
So all the Users on Server 1 should have their passwords synchronized on Server 2, so that they can work without facing any problem.
So can anyone tell me how to synchronize the passwords of all the users present on Server 1 with that on Server 2.
 
Old 06-06-2007, 04:03 PM   #2
Belenos
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Step 1 (on server 1)
awk -F: '{print $1 ":" $2}' /etc/shadow > work_file
Step 2:
<use whatever means you have to put the file on servr 2>
Step 3 (on server 2)
chpasswd -e < work_file

This must all be done as "root", of course. I would be inclined to use something like scp to do the transfer. I would be even more inclined to automate this, running it from crontab on server 2, using public key authentication to grab /etc/shadow.
 
Old 06-06-2007, 09:11 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625

Rep: Reputation: 101Reputation: 101
On my cluster, I just copy the passwd/shadow files by hand when needed . On the desktops, I use NIS (insecure but easy to set up). There's also LDAP authentication which allows for better security.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2003 sp1 to Solaris 10 6/06 password synchronization (ssod) james_ryan Solaris / OpenSolaris 0 09-01-2006 12:40 PM
windows to linux password synchronization freesco Linux - Software 4 05-20-2006 08:34 AM
windows + pop3 password synchronization MrSmee Linux - Networking 0 05-26-2004 09:35 AM
samba and nis password synchronization? preetam Linux - Networking 1 02-10-2004 07:05 PM
SAMBA UNIX password synchronization sewer_monkey Linux - Networking 2 10-30-2002 11:38 AM


All times are GMT -5. The time now is 07:50 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration