- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NIS user cannot log in
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:13 PM
01-18-2006 08:13 PM
NIS user cannot log in
I've just rebuilt a workstation following a power surge. Everything looks fine until a user tries to log in over the network: error message "login incorrect".
I've looked through numerous threads to see if I can find anything similar, but nothing seems to help. Any suggestions appreciated.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:21 PM
01-18-2006 08:21 PM
Re: NIS user cannot log in
Dear
login as root (local user) and check if the connectivity is OK.
try
#ypwhich
in the client and confirm the NIS servers connectivity.
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:23 PM
01-18-2006 08:23 PM
Re: NIS user cannot log in
Is it the NIS user which is trying to login or you have not yet put it into NIS?
Is /etc/resolv.conf set properly to look for proper entry? and can your workstation see the NIS server?
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:23 PM
01-18-2006 08:23 PM
Re: NIS user cannot log in
Output of ypwhich is identical to a working workstation.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:23 PM
01-18-2006 08:23 PM
Re: NIS user cannot log in
have you tried:
1. Login with root, then su - to the user
2. check the nsswitch.conf for passwd
3. is this a trusted system?
4. Has the password aged out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:35 PM
01-18-2006 08:35 PM
Re: NIS user cannot log in
Workstation can ping NIS server.
The only difference between resolv.conf on this workstation and a working one was that the newly rebuilt one had a comment against the NIS server. I have removed the comment in case it was causing problems. Does anything need to be restarted?
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:39 PM
01-18-2006 08:39 PM
Re: NIS user cannot log in
1. su indicates "Unknown id".
2. nsswitch.conf has files first then NIS. Working WS is the other way round. (I would have thought files first was logical.)
3. No.
4. I reset the password in case he had forgotten it.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:44 PM
01-18-2006 08:44 PM
Re: NIS user cannot log in
1
nsquery passwd "nis_user" "NIS"
Does it resolve it?? If yes that means client can reach nis server and client is interacting with nis server. Again check if ypbind is running or not.
2
ypwhich -m --> Does it list password map??
3
Cross check nsswitch.conf file.
4
Password file. Do you have "+" (allowed nis user) for that user in password file-/etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:46 PM
01-18-2006 08:46 PM
Re: NIS user cannot log in
"This name service is currently unavailable", yet ypbind is running.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 08:59 PM
01-18-2006 08:59 PM
Re: NIS user cannot log in
I've compared several things on the two workstations in SAM. On the "Network Services" screen I see that NFS is disabled on the faulty workstation but enabled on the working one. I've tried to enable it on the faulty ws but after a lengthy delay with an hourglass it returns to disabled.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:01 PM
01-18-2006 09:01 PM
Re: NIS user cannot log in
What does
nsquery passwd "nis_user"
Give
nsquery hosts hostname
Would also be interesting
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:01 PM
01-18-2006 09:01 PM
Re: NIS user cannot log in
nsquery command should be as follows.
nsquery passwd "user_name" "nis"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:04 PM
01-18-2006 09:04 PM
Re: NIS user cannot log in
I've amended nsswitch.conf to reflect the working WS then I reran the nsquery. It now shows the user correctly but I still cannot su to his account.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:05 PM
01-18-2006 09:05 PM
Re: NIS user cannot log in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:06 PM
01-18-2006 09:06 PM
Re: NIS user cannot log in
nsquery hosts hostname gives a correct entry.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:07 PM
01-18-2006 09:07 PM
Re: NIS user cannot log in
su can be blocked by pam configuration. We use it to stop root from doing su - to certain dangerous users.
This can also be used to totally prevent user login.
file should be called #pam_user.conf
or
pam_user.conf
You might find its contents interesting.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:13 PM
01-18-2006 09:13 PM
Re: NIS user cannot log in
Apologies - I thought I had answered your questions. Looking back at my response, I only actually answered the first one.
1. This gives a correct answer
2. Yes
3. I have amended it so it is the same as the working workstation (with the exception of passwd - the working one has NIS first, the faulty one has /etc/passwd then NIS which is, in my opinion, more logical)
4. Yes.
SEP:
Thanks. I've checked the file and compared it with the working WS. It's identical.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:19 PM
01-18-2006 09:19 PM
Re: NIS user cannot log in
/sbin/init.d/nis.client stop and start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:22 PM
01-18-2006 09:22 PM
Re: NIS user cannot log in
hosts: dns [NOTFOUND=continue] nis [NOTFOUND=continue] files
automount: nis [NOTFOUND=return UNAVAIL=continue] files
passwd: files [NOTFOUND=return UNAVAIL=continue] nis
group: files [NOTFOUND=continue UNAVAIL=continue] nis
services: nis [NOTFOUND=continue] files
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:34 PM
01-18-2006 09:34 PM
Re: NIS user cannot log in
this should be
passwd: files [NOTFOUND=continue UNAVAIL=continue] nis
or simply,
passwd: files nis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:47 PM
01-18-2006 09:47 PM
Re: NIS user cannot log in
Is this box or has this box ever been trusted
Are either of these there
/tcb/files/auth/system/default
If there and 15 or more bytes long system is assumed trusted
/etc/shadow.
If its there it maybe should not be
rename existing file so you lose nothing and try again
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 09:52 PM
01-18-2006 09:52 PM
Re: NIS user cannot log in
I can now su to the user and I can telnet in as him from a different WS, but when he tries to log in at the console using CDE he still gets "Login incorrect".
Further help appreciated.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 10:18 PM
01-18-2006 10:18 PM
Re: NIS user cannot log in
Other wise try to stop/start pwgrd to rule this out.
# /sbin/init.d/pwgr stop
# /sbin/init.d/pwgr start
Regards,
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 10:37 PM
01-18-2006 10:37 PM
Re: NIS user cannot log in
No different after trying that.
I'm currently rebooting the workstation to see if that brings it back. Meanwhile, more suggestions would be welcome (if the forum is available long enough to allow people to post!).
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2006 11:02 PM
01-18-2006 11:02 PM
Re: NIS user cannot log in
does the pw of the user hold any character that may collide with the tty settings?
- compare with the output of "stty -a"
regards,
John K.