Operating System - HP-UX
1832857 Members
3137 Online
110048 Solutions
New Discussion

NIS+ users can not login from CDE

 
Ben Li
Advisor

NIS+ users can not login from CDE

I'm using NIS+ in my new HP. But I can only login to the system from CDE as root. And can not login as another user registered in the NIS+. It comes out with message "Login incorrect, Please try again". But I can use $ su - uid to login.
I used dr_dt to check the CDE login, it seems OK no error exist.
Can anyone help me to solve the problem?

Thanks
7 REPLIES 7
Antoanetta Naghiu
Esteemed Contributor

Re: NIS+ users can not login from CDE

Did you use nsswitch.compat? Berline sugested to use on nsswitch.conf, the compat version of the file, I mean, passwd: compat,
group: compat. That is going to replace the old + + in the /etc/passwd and /etc/group files.
And one more question: Do users have a home directory inyour box? (local or NFS remote)?
CHRIS_ANORUO
Honored Contributor

Re: NIS+ users can not login from CDE

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x506168c57f64d4118fee0090279cd0f9,00.html. This is your previous thread. Update the $HOME .dtprofile. Also check /var/dt/Xerrors file.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Ben Li
Advisor

Re: NIS+ users can not login from CDE

Antoanetta:
No, I did not use the nsswitch.compat. I copied nsswitch.nisplus to the nsswitch.conf.
And the nsswitch.compat is using NIS not the NIS+, in our network we use NIS+.
The user have HOME. I can use su - uid to get into it's home after I login as root in the CDE.
Chris:
But how to update the .dtprofile file.There is no errors In the Xerrors file.And I the web page not found.

Thanks for your reply.
Antoanetta Naghiu
Esteemed Contributor

Re: NIS+ users can not login from CDE

The default nsswithc is using for passwd (and group files nisplus). Why don't try to flip these? Put nisplus first and after that files?
I am not sure, but I would give it a try with compat version as well.
If everything is ok, a silly question: are those user name in the maps (database) file?
Try ypcat (see man ypcat for nisplus). For nis is working as:
in client side: ypcat passwd_map |grep username. Is it working?
Alex Glennie
Honored Contributor

Re: NIS+ users can not login from CDE

Have you tried a yppush on the NIS server if this is not the workstation with CDE on it you mentioned ?

If you create a non root local user can they log in ?
Edit a users .dtprofile :
add : set -x at the end.
logout as root and then back in as the user. Check $HOME/.dt/startlog for clues afterwards.

Ben Li
Advisor

Re: NIS+ users can not login from CDE

Alex,
I did not use yppush. because we are using NIS+ server.
I add a local user, and it can login from the CDE. But I can't find any clues on the startlog file.
Ben Li
Advisor

Re: NIS+ users can not login from CDE

I changed nsswitch.conf to use passwd: compat, group: compat.
But still can not login the NIS+ users. Only local user can login.