Re: configuring nis
Written by WarrenHead on 05/21/07 16:11>> Reid Linnemann schreef: Written by WarrenHead on 05/21/07 15:34>> Hi, 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: sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash 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. Cheers, Warren pw by default works on the local /etc/passwd, not the yp passwd database. I suggest reading about the -y option in the manpage: -y path 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. 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. Thanks for the heads up! Cheers, Warren Also of interest should be the -Y option, which when used with the -y flag automatically triggers a 'make' in /var/yp. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: configuring nis
WarrenHead <[EMAIL PROTECTED]> writes: > 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: > sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash > > 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. This depends on where the sources for the maps are stored on the master. If NIS on the master is not getting its data directly from /etc/master.passwd, then I think you need to give the "-y" option to the pw(8) command to get it to change the maps. [Or you can just edit the files directly. That's what I do on my (very small) home network.] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: configuring nis
Written by WarrenHead on 05/21/07 15:34>> Hi, 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: sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash 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. Cheers, Warren pw by default works on the local /etc/passwd, not the yp passwd database. I suggest reading about the -y option in the manpage: -y path 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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: configuring nis
Reid Linnemann schreef: Written by WarrenHead on 05/21/07 15:34>> Hi, 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: sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash 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. Cheers, Warren pw by default works on the local /etc/passwd, not the yp passwd database. I suggest reading about the -y option in the manpage: -y path 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. 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. Thanks for the heads up! Cheers, Warren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: configuring nis
WarrenHead schreef: Hi, 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: sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash 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. Cheers, Warren Oh and just running 'make -C /var/yp' doesn't solve it either. This command is suggested here: http://www.linux-nis.org/nis-howto/HOWTO/maps.html Cheers, Warren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
configuring nis
Hi, 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: sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash 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. Cheers, Warren ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
configuring nis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I realize there is a nis section in the handbook, and I've read that. I was wondering how you configured the nis master.passwd maps, after you add a user with: pw useradd something - - the something user isn't automatically propegated to the /var/yp/master.passwd file. How can this be solved? This isn't explained in the handbook, and I was wondering if I should file it as a bug? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFTu5STsjaYASMWKQRAhG8AJ4vaXQLnvy8gS+mD9IRjAqi1YSbvACfewlf /vq8vJAORr4tZkUinvp+wEA= =RbRi -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"