sync password


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers sync password
# 1  
Old 09-16-2010
sync password

hi guys

I have multiples linux servers Centos 5.3

the idea is to create a mechanism that when users change his password that new password will change on all linux boxes....

do you have any experience on this?
I know there are scripts to change password for a user but mine is whenever a user wants to change his password he does it and all the boxes get that change....

I thought about scp /etc/passwd but some think it is dangerous

other thread
IT Resource Center forums - sync password between 2 servers

thanks a lot

any other idea
# 2  
Old 09-16-2010
Like the other thread says, if you don't want to copy files around, you'll need a centralized infrastructure like NIS or LDAP.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 09-16-2010
and I strongly recommend not using NIS. LDAP is the way to go!!
This User Gave Thanks to frank_rizzo For This Post:
# 4  
Old 09-16-2010
ok the point is NIS or LDAP will take some time....
If I'd choose scp only /etd/passwd and /etc/shadow would be the files to sync?
# 5  
Old 09-16-2010
Personally I would not scp the /etc/passwd /etc/shadow files directly. there is to much that can go wrong. Also do you really want the same root passwords on all of the systems? Either write a custom script using a utility like chpasswd(8) or implement a centralized system like LDAP. How many servers are there?
This User Gave Thanks to frank_rizzo For This Post:
# 6  
Old 09-16-2010
basically this is not for root it is for other users....

they are 8 servers....but my customer asked to implement a script which is a menu and that menu has to include something like

- Change password Option

and voila that should change the password for that user on all 8 servers
# 7  
Old 09-16-2010
you do realize that if you copy /etc/shadow from one server to the next that the root password will now be the same? Are the same exact users on all servers?

Code:
LDAP=voila

This User Gave Thanks to frank_rizzo For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. AIX

Unable to sync a lv

Hi Please look in to the below issue and advise how to fix the issue. I tried syncvg but it gives me an error. Recently we have upgraded the service pack in this lpar. ========================================================== pmut8# lsvg -l rootvg | grep -i stale paging00 ... (3 Replies)
Discussion started by: newtoaixos
3 Replies

3. UNIX for Dummies Questions & Answers

Help with sync

Folks; I have 2 SUSE DNS servers, one will be the master and one will be the slave. we normally update the master when adding any new servers to the DNS list. I'm looking for a way to sync both servers every night, so the slave is updated nightly. I thought of using "rsync" with cron to sync... (1 Reply)
Discussion started by: Katkota
1 Replies

4. Shell Programming and Scripting

Password script sync

Hi all, I am trying to create a simple password script but it seems not working well. What I'm trying to do is to sync the yppasswd and smbpasswd. So I created this: #!/bin/csh echo "" echo "Please enter old password: " set OLDPASSWD = $< echo "Please enter new password: " set NEWPASSWD... (2 Replies)
Discussion started by: saiful
2 Replies

5. Solaris

R-sync for solaris?

Hi Gurus I ave a Prod,standby and DR server(All Sol 5.9) and i need to sync the Application running in prod,standby and DR. The Application vests in a filesystem(a directory) and syncing the directory would server my purpose. I came across rsync utility and am planning to implement it. But... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

6. Solaris

Sync to Green vs. Separate Sync

Hi all....I have a Sun Ultra2 that I want to use with my PC monitor. I have purchased an adapter that does not work and I was told I need to change my video card setting (if I can) to Separate Sync.....my Monitor product number ends in 1343......I am running SunOS 5.7 ......anyone have any ideas? ... (0 Replies)
Discussion started by: psantinello
0 Replies

7. Solaris

cron sync

hi all , i have a E4900 server cluster that consists of 2 Servers (Cluster1 and cluster2 ) all of my crons are located under /var/spool/cron/crontabs . I am trying to put them on a shared place , so thati dont have to edit both crons on every system . thank you cheers (3 Replies)
Discussion started by: ppass
3 Replies

8. UNIX for Advanced & Expert Users

samba questions (password conversion to blowfish and is it wise to sync the useraccou

i stumbled upon something that gave some nice instructions on how to convert FreeBSD passwords from md5 to blowfish. it was simple and straight forward and it worked. i'm running samba on the machine. now i know the tutorial i was following had something where a user's samba and machine... (1 Reply)
Discussion started by: xyyz
1 Replies

9. UNIX for Advanced & Expert Users

Workstations are not sync

What's the idea of Unsyncron SUN WS's ? one of our client had a problem & my supervisor told me that this causes of unsynchron WS's i mean maybe the setting of one is not compatible with other ..... Any Suggestion would be helpful Rgrds, nikk (1 Reply)
Discussion started by: nikk
1 Replies
Login or Register to Ask a Question