Keeping /etc/passwds in sync
Magnus Therning
magnus at therning.org
Fri Apr 17 10:28:46 CEST 2009
On Thu, Apr 16, 2009 at 11:40 PM, william pink <will.pink at gmail.com> wrote:
>
>
> On Thu, Apr 16, 2009 at 10:59 PM, Nix <nix at esperi.org.uk> wrote:
>>
>> On 16 Apr 2009, Dan Ros verbalised:
>>
>> > On Thu, Apr 16, 2009 at 4:22 PM, Longman <clug at gasops.co.uk> wrote:
>> >> What's the best way of keeping an /etc/passwd (and /etc/shadow, group
>> >> etc) in sync between systems which need to have the same accounts? The
>> >> systems will *not* be on the same network. One will be a private host
>> >> and one will be a public host (though may need to keep more than two
>> >> hosts in sync).
>> >
>> > NIS/LDAP/PAM-MySQL etc are great but might be a bit cumbersome to set
>> > up.
>>
>> I tried to set up Hesiod a while back. There's native support in glibc
>> and everything, and the idea is lovely, but the way it breaks getpwent()
>> is really annoying. So I'm back to rsync for now.
>> _______________________________________________
>> CLUG mailing list
>> clug at cambridge-lug.org
>> Website: http://www.cambridge-lug.org
>
> Yeah I would of said a Autossh tunnel with a rsync cron job running
> periodically would do the job
I'd suggest you take a look at unison if you are planning pushing
changes is more than one direction.
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
More information about the CLUG
mailing list