Operating System - HP-UX
1834799 Members
2804 Online
110070 Solutions
New Discussion

Re: Configue NFS client to mount a home directory depending upon username

 
Brian  Faulk
Advisor

Configue NFS client to mount a home directory depending upon username

What I am trying to do is simply have a NFS client mount user's home directory from a NIS master, which is exporting the home directory. Both are bound to the domain and the NIS master does allow a user to login on the NIS client but the user's home directory doesn't mount.

Please help.
Thanks
14 REPLIES 14
Steven E. Protter
Exalted Contributor

Re: Configue NFS client to mount a home directory depending upon username

Can you give an erorr code please?

tail -f /var/adm/syslog/syslog.log on the NFS server when this happens.

That would be useful in diagnosis and cure.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: Configue NFS client to mount a home directory depending upon username

How does /etc/nsswitch.conf look like on client??

Does it have entry for automount?? Is automount map ok?? And perms on local dir where automount will mount the dir??

Can you mount those home dirs manually??

Anil
There is no substitute to HARDWORK
Brian  Faulk
Advisor

Re: Configue NFS client to mount a home directory depending upon username

There isn't an error message. It just doesn't mount the directory. From what I can tell it does mount it however when the user logs in he/she is left at / not /home2/(user_name).

javascript:postAnswerSubmit('submit');
submit
Devesh Pant_1
Esteemed Contributor

Re: Configue NFS client to mount a home directory depending upon username

did you try command line mount ?
like
mount -F host1:/directory/name /local/directory/name

what happens ?
Devesh Pant_1
Esteemed Contributor

Re: Configue NFS client to mount a home directory depending upon username

Also could you check the contents of /etc/rc.config.d/nfsconf
Brian  Faulk
Advisor

Re: Configue NFS client to mount a home directory depending upon username

Yes doing it manually works just fine.
No problems.
Brian  Faulk
Advisor

Re: Configue NFS client to mount a home directory depending upon username

Not sure what to look for but I do have the file and it AUTOMOUNT is set to 1 and it does reference auto_master.

RAC_1
Honored Contributor

Re: Configue NFS client to mount a home directory depending upon username

Post auto_master and the contents of the map that is mentioned there.

Anil
There is no substitute to HARDWORK
Brian  Faulk
Advisor

Re: Configue NFS client to mount a home directory depending upon username

/etc/auto_master
/net -hosts -nosuid,soft
/home auto_home

/etc/auto_home
user1 sumserver:/home/user1
user2 sumserver:/home/user2


I hope this answers your question.

RAC_1
Honored Contributor

Re: Configue NFS client to mount a home directory depending upon username

Can you resolve sumserver1 from client?? With ip_adress and with host name??

Send -usr2 signal to autmountd and then try logging in with user id. Now check the debug log. (it will be created in /var/adm/syslog dir)

Anil
There is no substitute to HARDWORK
Brian  Faulk
Advisor

Re: Configue NFS client to mount a home directory depending upon username

I can resolv without any problems. There are no error messages at all as any user tries to login.

RAC_1
Honored Contributor

Re: Configue NFS client to mount a home directory depending upon username

Did you dod this??

Send -usr2 signal to autmountd and then try logging in with user id. Now check the debug log. (it will be created in /var/adm/syslog dir)
There is no substitute to HARDWORK
Ermin Borovac
Honored Contributor

Re: Configue NFS client to mount a home directory depending upon username

Have you tried changing the following line in /etc/auto_master? Maybe automounter cannot find your auto_home map, so try absolute path.

/home auto_home

to

/home /etc/auto_home
Brian  Faulk
Advisor

Re: Configue NFS client to mount a home directory depending upon username

Yes I did try to make that change in /etc/auto_master to /home /etc/auto_home.

javascript:postAnswerSubmit('submit');
submit