Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I have a Fedora 7 machine, and suddenly only root can login from the console (either through the gui, or through any of the four virtual consoles). All users (root and others) can login just fine via ssh, and root can su to anyone on the console (that is, login as root on the console, and then you can su to anyone). Other machines (we have 23 others) that are set up the same are working correctly.
The only error I can find is that when I try to login as a non-root user on one of the virtual consoles, /var/log/secure gets
login: FAILED LOGIN 1 FROM (null) FOR <username>, Authentication failure
but there's nothing to say *why* the authentication failed. We use NIS, but since it works when one logs in via ssh, it isn't an NIS problem.
If I create an /etc/nologin (there isn't one already), I do NOT see the message when I try to login on the console, which means (I think) that it's something that happens before it checks for /etc/nologin.
I was really thinking it was a permissions problem or a corrupt cache or something (since it's only this one machine), but I can't come up with anything, and I can't figure out how to get more info into the log which would point me in the right direction.
If I do a last on /var/log/btmp right after I attempt to login on the console as a non-root user, it says that the user is "still logged in" for what seems like about a minute, then it changes to "gone, no logout". This despite the fact that the user just gets a "login incorrect" error and a new login prompt.
Yet more information that I still have been able to piece together into a solution:
Any local account can login, as can any account for which authentication is obtained from the LDAP server; the only accounts having problems are the ones that are authenticated from the NIS server.
What's weird is that NIS seems to be working; yptest passes all the tests, I can ypcat anything, plus the home directories get automounted, and that uses auto.* maps from the NIS server. Plus, since you can login remotely (not at the console), that proves NIS authentication is working.
So, it seems that NIS authentication is not working only when you try to login to the console, and only on this one machine. Interestingly, I had thrown up my hands earlier today and re-imaged the machine, and it worked *once*, and then hasn't worked since, so I am really confused.
on fedora 7 NO
fedora changed the network manager in fedora 8
and that would have changed nis
Quote:
I had thrown up my hands earlier today and re-imaged the machine, and it worked *once*, and then hasn't worked since, so I am really confused.
please install a LONG life distro like rhel5.4 or centOS 5.4
they have a 5 year life
VS fedora's 13 month life
or the current fedora 12 . then i 1 month fedora 13 .then in 6 moonths fedora 14 . then 6 months after that fedora 15 .And so on EVERY 6 MONTHS
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.