Operating System - HP-UX
1834429 Members
2064 Online
110067 Solutions
New Discussion

Re: id: cannot find name for user ID

 
SOLVED
Go to solution

id: cannot find name for user ID

Hi,

When i try to login to a linux m/c (NIS client), it gives the error id: cannot find name for user ID xxx.

My NIS server is hp-ux. It works fine from other HP-UX NIS clients but not from linux NIS Clients.

Please help. I have checked permissions on home directory.

Regards,
Kusuma
8 REPLIES 8
Muthukumar_5
Honored Contributor

Re: id: cannot find name for user ID

hai,

Are you configured the /etc/nsswitch.conf file in linux with nis for hosts,passwd,networks as like other hp-ux clients.

Make the linux /etc/nsswitch.conf file as like hp-ux nsswitch.conf file. ID will work.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!

Re: id: cannot find name for user ID

Hi Muthukumar,

I forgot to say that it doesn't happen for all the users on linux. which means that nsswitch.conf must be ok.

Rgds,
Kusuma
Kent Ostby
Honored Contributor

Re: id: cannot find name for user ID

The only thing that I can think of is to check to make sure that the /etc/passwd and
/etc/group files are world readable.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Muthukumar_5
Honored Contributor
Solution

Re: id: cannot find name for user ID

check the NIS configuration with yptest. Can you able to change the user's passwd with yppasswd command.

Is ypdomainname command showing the NIS domain name.

what is saying grep user /etc/passwd; which user failed on ID. what is ur /etc/nsswitch.conf file entries. IF you are having files on passwd, the id will work for that user.

I hope your linux machine not having user as like in hp-ux server.

Easy to suggest when don't know about the problem!
john kingsley
Honored Contributor

Re: id: cannot find name for user ID

There still may a problem with your nsswitch.conf file even though it works for some users. Check to see if these users have local accounts on the LINUX box. Your nsswitch.conf may be configured to resolve passwords from local files only.

Double check to make sure the linux box is in the correct NIS domain.
RAC_1
Honored Contributor

Re: id: cannot find name for user ID

Is the user allowed to login on linux machine??

From linux machine, can you do ypcat -k passwd|grep "user"

Also is there a command like nsquery on linux?? Can you check that the user is indeed resolvable from linux box??

Anil
There is no substitute to HARDWORK

Re: id: cannot find name for user ID

Thank you all.

It is working now. I had done some stupid mistake regarding nis user and home directory.

Kusuma
Muthukumar_5
Honored Contributor

Re: id: cannot find name for user ID

hai kusuma,

It is good that your problem solved. And more,it is good to give some points to the mail replies to encourage the responder(s).

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!