replicating /etc/passwd on a failover machine

Jerry McAllister jerrymc at msu.edu
Wed Dec 20 11:13:45 PST 2006


On Wed, Dec 20, 2006 at 11:28:27AM -0500, stas khromoy wrote:

> -----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 .

Almost.   You just need to make sure database stuff is updated properly.
Check out pwd_mkdb(8) and vipw(8) and man master.passwd and man passwd.

////jerry

> 
> thanks


More information about the freebsd-questions mailing list