replicating /etc/passwd on a failover machine

Bill Moran wmoran at collaborativefusion.com
Wed Dec 20 09:16:17 PST 2006


In response to stas khromoy <stas at edpausa.com>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hey folks
> 
> we are working on building a failover server.
> now everything is going along pretty nicely. (knock on wood)
> 
> so the question of the day.
> is there a way to replicate the password files ?
> 
> i doubt that just copying over /etc/passwd and master.passwd will work .

Actually, it's not much harder than that.  The only step you're
missing is running pwd_mkdb on the files after they've been
copied, you can easily add that to your failover process.

Although, it may be worthwhile to investigate kerberos or LDAP if there's
any chance at all that this might grow into a larger desire to replicate
user accounts.

-- 
Bill Moran
Collaborative Fusion Inc.


More information about the freebsd-questions mailing list