Paul Davies was once rumoured to have said: > Hi Slugs > > Thanks to Greg Hosler, Stuart and Marty Richards for their advice. It is > greatly appreciated. > > I have managed to get the client to successfully listen to the NIS server. > I simply stuck linux on another machine and set it up as a client. I did > nothing different setup wise - I have no idea why it now works. > > I still have a problem: I enter a user on the server. I then run > /var/yp/make to update. I can then log onto the client as root and I can > see the new user in passwd.byname. I use ypcat passwd.byname to see this. > > The problem is, when I try to login with the new username and password on > the client, the client will not authenticate it. Do you guys have any idea > what I have overlooked!
The client has to be configure to use NIS/YP as a source for passwd and group tables. This is controlled usiong the /etc/nsswitch.conf file. There are also two ways to go here: * You can do what I do, and use compat, which uses the old libc5-style NIS handling which requires you to add '+' lines to your passwd and group files, but also gives you the flexability to override NIS for various fields and for certain accounts. To use this, you need to set the appropriate lines in nsswitch.conf to: ---BEGIN--- hosts: files nis passwd: compat shadow: compat group: compat ---END--- Then you have to add the authorise lines to your /etc/passwd: ---BEGIN--- +:::::: ---END--- and to your /etc/group: ---BEGIN--- +::: ---END-- or you can: * use the nis module which pulls in the NIS records verbatim, as (As far as I'm aware) doesn't allow you to override fields. To do this, you want to set the appropriate lines in nsswitch.conf to read: [You want to keep the rest of nsswitch.conf else things will break] ---BEGIN--- passwd: files nis group: files nis hosts: files nis ---END--- You also might want to do the same to shadow if you're using shadow passwords in NIS. However, shadow passwords + NIS are a rather incompatible combination, so think hard about it before using it with non-Linux systems. I'm using NIS on FreeBSD to drive the network at home which has a mixture of BSD, Linux and Commercial Unix (Solaris + Irix) systems - I've had to make a few changes to our NIS server to make it compatible with non-BSD systems - if people are interested, I can post details on this process too. Hmm... maybe I should give a tech-talk on how to NISify a network sometime? C. -- --==============================================-- Crossfire | This email was brought to you [EMAIL PROTECTED] | on 100% Recycled Electrons --==============================================-- -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
