Operating System - Linux
1748265 Members
4088 Online
108760 Solutions
New Discussion юеВ

Re: How to get Linux to automount NFS homedirs from HPUX NIS server

 
Gram Ludlow
Frequent Advisor

How to get Linux to automount NFS homedirs from HPUX NIS server

Hi!

We have a network with a HPUX 11 NIS server. We have recently begun installing Linux (Redhat 7.1) workstations.

I've configured NIS and NFS to work on the Linux workstations, but I'm having serious problems getting the workstation to automount home directories from NIS.

On our HP machines, the NIS passwd file has /net/Computer_Name/home/Username as the home directory, and when you log in that gets mounted on the local filesystem, so any user can log in anywhere. I can't figure out how to configure the Linux client to do the same.

Any help would be appreciated!
Turning and turning in the widening gyre,
6 REPLIES 6
Maik Danstedt
Occasional Advisor

Re: How to get Linux to automount NFS homedirs from HPUX NIS server

Hi,

you need to edit the /etc/fstab file. Here you can enter the network directory and the mount-point.

I would suggest webmin from http://www.webmin.com/webmin/ as a quite could configuration tool for things like this, but I think linuxconf can do it, too.


cu,
MaDMaik
I haven't lost my mind! I backed it up on tape somewhere...
Gram Ludlow
Frequent Advisor

Re: How to get Linux to automount NFS homedirs from HPUX NIS server

The problem is that we have over 250 user accounts, and I do not want an fstab that size.

The HP workstations automagically and dynamically mount the shared directories that they get from NIS. I'm trying to add this functionality to Linux.
Turning and turning in the widening gyre,
Sachin Patel
Honored Contributor

Re: How to get Linux to automount NFS homedirs from HPUX NIS server

Hi Gram,
You need automounter to configure on your linux systems.

It works excetly same as HP systems.
auto_master file and start automounter /etc/rc.d/autofs start. You have 1. create a auto.direct map on your nis server
2. On linux client /etc/auto_master tell to look auto.direct map for mounting.

If you need more specific information let me know.

Sachin

Is photography a hobby or another way to spend $
Gram Ludlow
Frequent Advisor

Re: How to get Linux to automount NFS homedirs from HPUX NIS server

Thanks for the info! I'm having trouble creating the auto.direct (earlier I tried to create an auto.home map) on the HP server. I can't seem to find documentation on how to create this file. Any more instruction would be greatly appreciated!
Turning and turning in the widening gyre,
Sachin Patel
Honored Contributor

Re: How to get Linux to automount NFS homedirs from HPUX NIS server

Hi
Here is the procedure.
On HP-server
#>vi /etc/auto.direct
/systemname/filesystem systemname:/filesystem
for example
/mysystem/tmp mysystem:/tmp

#>cd /var/yp
#> make auto.direct

on client ypbind should work before you start.
#> ypwhich (should show you your hp server)
#> ypcat -k auto.direct (should show you the map.
#> vi /etc/auto_master
/net -hosts -soft
#> restart the automounter.

If you need more help let us know

Sachin

Is photography a hobby or another way to spend $
Gram Ludlow
Frequent Advisor

Re: How to get Linux to automount NFS homedirs from HPUX NIS server

Thanks again!
I've done a TON of digging through man pages, and here's a solution I've found:
Using indirect automounting, I can dynamically mount the root filesystem of other computers in the /net dir. Here's how:

On Linux machine:
vi /etc/auto.master
Add:
/net /etc/auto.home --timeout=60

vi /etc/auto.home
Add:
* &:/

Now whenever I go into /net/machine_name it will auto-mount the root filesystem and let me access the machine!

Now I just need to finagle it to mount the /home, which is also exported.

Hmm I should write a Linux/HP FAQ when I get this all figured out!
Turning and turning in the widening gyre,