1829399 Members
1687 Online
109991 Solutions
New Discussion

Re: NIS:running on linux

 
malay boy
Trusted Contributor

NIS:running on linux

Hi guy's.
Sorry for posting the Linux problem in HPUX forum.I know you guy are both expert in LINUX and HPUX.

I have NIS running on LINUX.This was a legacy system.Somehow,the NIS can move the home directory to whereever you logon.
In the NIS,I saw a file call auto.home which specify where the home directory for the particluar user.
Here are the content of the file :

ssteve serverA:/home/ssteve .

This meaning that ssteve home directory are in server A.
But when ssteve logon to server B it will auto mount serverA:/home/ssteve to server B.

My problem is we have a new machine and it is not auto mount.

I also plan to move this to HPUX but is HP NIS capable of auto mount the home directory?.

Any plan on how to move is great ?.

regards
mB

There are three person in my team-Me ,myself and I.
6 REPLIES 6
malay boy
Trusted Contributor

Re: NIS:running on linux

Hi,
Any help ???..sorry for posting lunix "thingi".

regards
mB
There are three person in my team-Me ,myself and I.
Elmar P. Kolkman
Honored Contributor

Re: NIS:running on linux

HPUX can be aware of automount in NIS. Check your /etc/nsswitch.conf file for the line starting with automount and change the files to compat (or nis [NOTFOUND=continue] files) and it should work.

Every problem has at least one solution. Only some solutions are harder to find.
Gary Cooper_1
Esteemed Contributor

Re: NIS:running on linux

This isn't definitive, but is based on my NIS setup.

Is the automount facility running on your new machine?

# ps -ef | grep auto

It's likely to be autofs.
If not, have a look in /etc/rc.config.d/nfsconf - automounter is started in here, look for:
AUTOFS=1
AUTOMOUNT_OPTIONS="-f $AUTO_MASTER"
AUTOMOUNTD_OPTIONS=""

This also means that /etc/auto_master should incorporate NIS, i.e. have
+auto_master as the last entry.

Hope this helps,

Gary Cooper
Alexander Chuzhoy
Honored Contributor

Re: NIS:running on linux

You didn't say what the new machine is -i.e. the server or the client....
I guess the client - so
1. the autofs service should be up - "chkconfig autofs on"
2. See that you don't have firewalling problems that are blocking RPC traffic.
3. See that the portmap service is up -
service portmap start
Mark Grant
Honored Contributor

Re: NIS:running on linux

It might be worth noting that it isn't NIS that is automounting your home directories but NFS and automount.

I have never set this up on Linux but the general principal will be the same as on HPUX.

On HPUX, you need to have "autofs" running as described in previous posts. The machine that has the home directories locally needs to have the "/home" directory in /etc/exports and "exportfs -a" needs to be run on it.

From this point on, there needs to be a file on each "client" machine called /etc/auto_master that has something like "/- /etc/auto_homes.map" in it. This is the name of another file that contains the actual mount options. It might look like this

/home/user1 -soft serverA:/home/user1

Now, in theory when the user logs in, it should mount the directory from serverA.

NIS might come in to play if the "auto_homes.map" is kept synchronised between "clients" using NIS. In this case, you would need to push out these maps using "yppush" each time you edited them.

You do not, however, need NIS to get it all working and you can edit the files map file manually on all the clients just to get it tested and working. After that, you can get NIS to manage them.
Never preceed any demonstration with anything more predictive than "watch this"
rvrameshbabu
Advisor

Re: NIS:running on linux

For setting Autofs in HP-UX , refer to http://docs.hp.com/hpux/onlinedocs/5990-7199/5990-7199.html