Sincronize /etc/passwd and /etc/yp/passwd.master
m.seaman at infracaninophile.co.uk
Mon Apr 28 09:22:33 PDT 2003
On Mon, Apr 28, 2003 at 05:06:36PM +0000, Ângelo Rodrigues wrote:
> On Monday 28 April 2003 15:48, Dan Nelson wrote:
> > In the last episode (Apr 28), ^Angelo Rodrigues said:
> > > On Monday 28 April 2003 15:16, Eduardo Viruena Silva wrote:
> > > > On Mon, 28 Apr 2003, [iso-8859-1] ^Angelo Rodrigues wrote:
> > > > > I'm trying to find an effective way to sincronize
> > > > > /etc/passwd.master and /etc/yp/passwd.master (at the same time)
> > > > > without having to force all local users to run two commands,
> > > > > passwd and yppasswd. Any ideia?
> > > >
> > > > a)
> > > > a simbolic link: /var/yp/master.passwd -> /etc/master.passwd
> > > >
> > > > b) change your /var/yp/Makefile to take /etc/master.passwd
> > > > instead of /var/yp/master.passwd
> > >
> > > Hmmm...but this will force the same home directory between the server
> > > and the client.
> > You want the same password; why wouldn't you want the same homedir and
> > shell also? All our NIS users have their homedir set to
> > /net/homedirmachine/home/username.
> But my server users are distributed betwen /home and /homeapp and
> this method will force the same thing in the clients.
You can selectively override part of a NIS password database entry by
using NIS magic tokens in the local passwd file --- see passwd(5).
For instance, user 'fred' might have home directory /home/fred in the
NIS database, but you can override that in a client machine to
/users/fred by putting:
into /etc/master.passwd on the client. All of the other fields are
inherited from the NIS database.
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030428/7e8d7429/attachment.bin
More information about the freebsd-questions