Written by WarrenHead on 05/21/07 16:11>>
Reid Linnemann schreef:
Ah ofcourse. I wasn't using the default /etc/master.passwd because that
one contains way more users than I want to share among machines.
Written by WarrenHead on 05/21/07 15:34>>
I have been having some trouble with getting NIS working on my
freebsd server. Mainly because I have never before used this.
I now have it working, but there is an odd inconsistency which I
don't know how to remove/update.
I changed the gid of a user with: 'pw usermod -n sam -g 1000', but
this change is not reflected in the yp maps. I did recreate the maps
again with 'ypinit -m', but I guess that was not the trick I needed
to update the maps.
So, now when I run 'ypcat passwd', I see something like this:
while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)
The difference is thus the gid.
I can find information about updating/pushing the maps onto slave
servers, but not about getting changes into the maps on the sole nis
server I have.
pw by default works on the local /etc/passwd, not the yp passwd
database. I suggest reading about the -y option in the manpage:
This sets the pathname of the database used by NIS if you are not
sharing the information from /etc/master.passwd directly with NIS. You
should only set this option for NIS servers.
Thanks for the heads up!
Also of interest should be the -Y option, which when used with the -y
flag automatically triggers a 'make' in /var/yp.
email@example.com mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"