Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to configure NIS Client...
Fedora Core 3
ran authconfig to configure NIS, works. Upon reboot I see that it connected to NISDOMAIN [OK].
I can ypcat passwd.byname, no problem. Gives list of user info
edited /etc/passwd with "+:::::"
edited /etc/nsswitch.conf and made sure "files nis" is listed in passwd, shadow, group
edited /etc/nsswitch.conf and made sure "files nis dns" is listed in hosts
Setup telnet, I can log in with local accounts (i.e. root), no problem
*** I can't log in with any of the accounts listed on the NIS server, only local accounts work...." please tell me I've over looked something simple...
Thanks ahead of time...
P.S. This is the 3rd NIS client in the system... all other NIS clients works fine (but that aren't FC3, they are FreeBSD). So I know the NIS server works fine!
I do have the "+:::" in the /etc/groups but I'm failing to find a "/etc/shadow" that you are referring to. The only thing I show is a /etc/shadow- file. Any more suggestions? I'm puzzled beyond belief....
Originally posted by mrsharky I do have the "+:::" in the /etc/groups but I'm failing to find a "/etc/shadow" that you are referring to. The only thing I show is a /etc/shadow- file. Any more suggestions? I'm puzzled beyond belief....
thanks
-R
I'm puzzled too. I mean if you're running Unix from 1985, that's one thing... but I don't
recall any relatively recent Linux not having an /etc/shadow file. Weird.
I did change my /etc/nsswitch.conf file as your suggested. I found the shadow file.. for some reason, I don't know why I didn't see it earlier. I just can't understand that after all the changes/help that I've recieved that it doesn't work. It still seems like its looking for the YP/NIS login creditials locally and never on the NIS server. Strange...
Is there some sort of coping of information that I forgot to do from the NIS server? When I do the "ypcat passwd.byname" I see the entire list from the NIS server.
Here's another thing I'd like to mention... when I run "authconfig" I have "Use NIS", "Use MD5 Passwords" and "Use Shadow Passwords" selected. Anything wrong there?? I'm truely greatful for all you guys help, cause I know we'll get this thing figured out.
First of all rename the /etc/shadow- file to /etc/shadow. Then reboot all the machines and test your NIS cllient. If that fails, post the output of the following:
Originally posted by mrsharky
Here's another thing I'd like to mention... when I run "authconfig" I have "Use NIS", "Use MD5 Passwords" and "Use Shadow Passwords" selected. Anything wrong there?? I'm truely greatful for all you guys help, cause I know we'll get this thing figured out.
MD5 of course is not universally standard with regards to NIS. Should work in the confines of a pure Linux only network, may not work in a mixed network with other *ix hosts.
Do you see the encrypted password in your passwd map (ypcat passwd)?
If not, then you've created a non-standard NIS where shadow is probably also being pushed as a map. Again, that is non universally standard, so it can be made to work in a pure Linux network, but not necessarily with a mixed network.
Remember... I'm talking about the map... ypcat passwd and not the source /etc/passwd. If /etc is the source directory for your map creates, then ideally your /var/yp/Makefile will take care of joining the /etc/shadow encrypted passwords into the yp passwd map ultimately. So that when you do a ypcat passwd, you'll see the encrypted password strings... the whole map thing is relevant to just the yp server (if that isn't clear).
Did that document I pointed you to help? I'm asking, because I wrote it.
I'm pretty sure that we are talking about the same time (ypcat passwd). Just to confirm: when I'm on the Fedora Core 3 NIS client, I can type "ypcat passwd" and a listing of all the users that have accounts on the BSD NIS SERVER scroll down. Now, this output (from what I understand to be correct) is supposed to be different that what is on the local computer (Fedora Core 3). Just to reiterate, I don't believe there is a problem with the NIS Server (BSD) because there are 3 other NIS clients (also BSD) communicating perfectly with the NIS server.
As mentioned below, when I type "ypcat passwd" I see about 60 (because that's how many users have accounts) lines that have this type of format:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.