Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What is the best way to sync multiple user accounts and home directories over multiple servers, they will all be the same OS. The servers are in different locations around the world, so if one goes down the others are still available. at the moment there are users on one server but if that server goes down there is no way, other than re-creating users and rsyncing the directories over. So just wondering if there is a better way? I haven't used LDAP but could this be a job for it or not?

share|improve this question
1  
What is the use case for this, BTW? Is the environment for a company spanning the global, a web forum or something a bit different? –  Rilindo Dec 16 '11 at 2:26
    
BTW, how many users? And I assume SSO (single sign on?). –  Rilindo Dec 16 '11 at 2:27
    
And one more thing: Depending on each server they log, are they supposed to be granted access to specific resources or privileges? –  Rilindo Dec 16 '11 at 2:31
    
Sorry for the late reply, everything is on the 'one' server, and all other servers are pretty much just mirrors of each other, with different hostnames, ips (so different servers / same data) the data stays the same on all. and also its no so much for services its more for keeping the user accounts in sync (same passwd on all servers / same gid uid) –  Elgoog Dec 16 '11 at 3:15
    
Well, if it isn't too many users, I recommend ErikA's answer. –  Rilindo Dec 16 '11 at 3:17

3 Answers 3

I'd recommend starting to use a config management system (Puppet and Chef are two good options at the moment) to deploy user/group data to your servers.

Ideally, you'd have one central LDAP or NIS server, but due to your distributed nature, using a config management system to keep your local user/group databases in sync would be a better option for you.

share|improve this answer

You can use LDAP for central user management, with replicas on all servers. And some cluster filesystem for the home directories, like: GlusterFS or XtreemFS.

share|improve this answer

You need to weigh the cost of setting up the LDAP server vs the number of users. As others have noted, if you only have a few users, stick to the easy solution.

If you want a LDAP setup, it is also possible to configure your LDAP server in replication across sites and to set the local machines to their local LDAP.

Instructions for OpenLDAP replication.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.