Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NIS automount problem

Status
Not open for further replies.

dandan123

Technical User
Sep 9, 2005
505
US
I'm trying to setup a box with NIS for authentication.

The home directories of all users are on one server.

When I

su - username on this box I'm setting up I get "No directory !"

I suspect this is a automount problem. The setup is the same as the several other boxes I've setup which work fine, with one difference. The problematic box is a "core" install.

Any ideas on how to debug ?
 
Check the following:

/etc/nsswitch.conf
Code:
automount    files nis

/etc/auto_master:
Code:
/home +auto_home
OR
/etc/auto_home
Code:
+


Also check `ps -aef|grep -v grep|grep automount`

Confirm your `ypwhich` output as well.
 
Thanks.. they are all ok.. I just noticed this server is not syncing with ntp.. could this cause the problem ?
 
ok.. I mounted the home directories manually but I stil get an error -

su - dandan123
No directory!

 
First, make sure nis is listed under "automount" in /etc/nsswitch.conf.

Also make sure that 'ypmatch -k dandan123 auto.home' returns a valid entry

And look at /etc/mnttab, you should see the automount entry.

gene

 
Another thing I discovered -

If I'm not root then I get -

$ ypwhich
ypwhich: can't communicate with ypbind
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top