nis plus on linux redhat

Hello all,

I wanted to know if any one had successfully install nis+ utils and use nis+ client on a linux (redhat) and have a Solaris nis+ server. I am able to install the client software on the linux and am able to see the nis+ tables. The passwd tables' works file but the auto_master and auto_home does not work correctly. I know that linux use /etc/auto.home (note the "." dot) instead of the underscore on Solaris. I have pointed my nsswitch.conf file on linux client to show:

automount: files nisplus

Currently I would have to cat my nis auto_home table and redirect it to /etc/auto.home on the linux. This works but is not the idea of nis+. I have looked and have tried a lot of different things but nothing works. My last hope to it edit the /etc/init.d/autofs. It does not seem to look for nis+. Would I be wrong to change this? Any advice would be great. THANKS

What do you have in auto master?

I believe you should have an entry such as

/home nisplus auto_home

RTM,

This is on the client side right. When I make the change and reload autofs I get this:

Start /usr/sbin/automount /home yp nisplus auto_home

but it does not work when I su - to anyone I get cannot change to /home/larry: no such file or directory

larry

Post what you have in /etc auto master. You probably need to remove the info you put into /etc auto home and return it to the correct information. Did you save what was in auto home before you started "cat my nis auto_home table and redirect it to /etc/auto.home "?

RTM,

This is from the client /etc/auto.master
[larry@liunx ~]$ more /etc/auto.master

# /misc /etc/auto.misc --timeout=60
#/home nisplus auto_home
/home /etc/auto.home
/opt /etc/auto.direct

This is the niscat command. To me this means that the system can see the nis+ tables.
[larry@linux ~]$ niscat auto_master.org_dir

/net -hosts
/home auto_home
/xfn -xfn
/- auto_direct

Here is my nsswitch.conf

....
automount: files nisplus
....

I did not save auto home before I cat nis+ table and redirect, because there was nothing in it. When I started there was no entries in the auto master file nor the auto home file. I basicly started from nothing. THANKS

Try changing /etc/auto.home to have one entry such as:

RTM,
Thanks for your answer but, I was trying to have the system look at the nis+ tables. I didn't want to use the /etc/auto.home file.

You have not posted what is in the nis map for auto_home - and your nsswitch.conf is looking at files first for automount. Automount is going to look into /etc/auto.master first where you have /home as /etc/auto.home so nis is never going to be looked at since you have already piped nis into your local /etc/auto.home.

You have to get rid of /etc/auto.home (rename it), point your /etc/auto.master to use the nis map.

thehoghunter,

my auto_home.org_dir

larry sunone:/export/home1/larry
...

I understand that my nsswitch.conf file points to the system /etc/auto.home first then nisplus. To my understanding if the /etc/auto.home file doe not have what I'm trying to mount it will look to the nisplus tables. That is what the nsswitch.conf supposed to do.

I have also tried to just have the nsswitch.conf file point to just nisplus, have auto.master point to nisplus map and remove /etc/auto.home file. But nothing.

Larry,

Seems like hoghunter was stating that since your /etc/auto.home already contained the information from nis+, automount would never bother to try nis+ since it found the correct entry.

Can you/have you tried to mount via command line any of the home directories? Does the NIS server share the home directories out to any other servers and is it working?

RTM, thehoghunter,

Thanks for your input. But I have remove all entries in the /etc/auto.home and made /etc/auto.master look at

automount: nisplus auto_home

This does not work. I have also tried to put nothing in the /etc/auto.home and have the /etc/nsswitch.conf look at the file then the nisplus file:

automount: files nisplus [NOTFOUND=return]

This does not work. But I did look at the autofs file. I think I will have to change it so that in knows about nisplus. THANKS