Operating System - HP-UX
1834818 Members
2860 Online
110070 Solutions
New Discussion

Re: Passwd File not connecting to NIS

 
Austin Modelski
Occasional Advisor

Passwd File not connecting to NIS

I have connected my hp9000 r3440 hp-ux 11.1 to my NIS and connected auto.master auto.home and auto.vol but my passwd file will not connect. I can run a ypcat passwd and it displays correctly. But when I try to "su" to another user it says I have not Shell specified. What do I need to do in order for this to work?
5 REPLIES 5
TTr
Honored Contributor

Re: Passwd File not connecting to NIS

> I can run a ypcat passwd and it displays correctly.

The password map looks like it is setup properly. Do you have the /etc/nsswitch.conf set up to do NIS lookups for the password file?
Austin Modelski
Occasional Advisor

Re: Passwd File not connecting to NIS

I have no nsswitch.conf file. How can it work without it?
TTr
Honored Contributor

Re: Passwd File not connecting to NIS

You should create one. Take a look at /etc/nsswitch.*, these are stubs for each environment including NIS. Take the nsswitch.nis, examine its contents and copy it as /etc/nsswitch.conf.

Ensure that the directives for each NIS map are correct.
Bill Hassell
Honored Contributor

Re: Passwd File not connecting to NIS

The man page for the nsswitch.conf file is: man switch


Bill Hassell, sysadmin
Austin Modelski
Occasional Advisor

Re: Passwd File not connecting to NIS

Thanks guys I got it working, and found out that my box didn't have tcsh yet, which was making it even more confusing.