Operating System - HP-UX
1834604 Members
3984 Online
110069 Solutions
New Discussion

nfs mounting user home directories

 
SOLVED
Go to solution
Eric Buckner
Regular Advisor

nfs mounting user home directories

I realize this is probably done through AutoFS. However, I got a few questions. First is there any good docs on doing this? I really don't want to use NIS at this time but would like to have roaming home directories.

TIA!!!
Eric
Time is not a test of the truth.
8 REPLIES 8
S.K. Chan
Honored Contributor
Solution

Re: nfs mounting user home directories

A good place to start is the HP docs (if you do not have 'em yet).

http://docs.hp.com/hpux/netcom/index.html

Click on "NFS Services"
Doc you need is "Installating and Administering NFS Services"
Paula J Frazer-Campbell
Honored Contributor

Re: nfs mounting user home directories

See man NFS.

Basically export the dir from the home server setting read/write permissions.

Mount the dir on the target server - I would suggest using a soft mount options as a failed server can seriously affect the others.

You can control the export server to only export to x y or z server.

Sam is very handy for this task.


Paula
If you can spell SysAdmin then you is one - anon
Helen French
Honored Contributor

Re: nfs mounting user home directories

Hi,

This is a complete guide:

http://www.docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html

HTH,
Shiju

Life is a promise, fulfill it!
Eric Buckner
Regular Advisor

Re: nfs mounting user home directories

Yeah I understand the basics of Exporting/Mounting for NFS. I just didn't want to have to go through creating a new export and mount everytime I added a user. There has to be a way of automating that. Which is why I was thinking automounter/autofs.
Time is not a test of the truth.
S.K. Chan
Honored Contributor

Re: nfs mounting user home directories

OK, also check the doc link that I gave you. There is a section on "Configuring NFS Automounter". Basically this is what you would do.. (I might miss a few steps but I think this is close).
For example :
In /etc
=======
Content of auto_master file would be
/users /etc/auto_users

Content of auto_users file would be
james ford:/home/james
* toyota:/home/*

In /etc/rc.config.d/nfsconf
===========================
...
AUTO_MASTER="/etc/auto_master"
AUTOFS=1
....

Once AutoFS is running you should see 2 process
1- autofs_proc
2- automountd

The above example will automount all users home directories in host "toyota" except for user "james" whose home dir will come from ford instead.
Eric Buckner
Regular Advisor

Re: nfs mounting user home directories

Thanks everyone! I was doing all of this but wasn't having much success. It wasn't until my 100th stop/start of nfs.client that I noticed a message stating that /home was already mounted.

Apparently autofs doesn't like for you to have a mounted FS on /home if you are going to be automounting to /home. I unmounted /home and did the stop/start shuffle w/ nfs.client and lo and behold it worked like a charm.

Thanks again for the help!!

Eric
Time is not a test of the truth.