Operating System - HP-UX
1836379 Members
2510 Online
110100 Solutions
New Discussion

Re: need Info on passwd map

 
Sudhakar J_1
Advisor

need Info on passwd map

Hi,
Can some one one clarify why we need to create a link from a mount point to users defined home dir.Can not we specify a wildcard and it will work.Since link is again contacting the defined mount point in passwd map.

tomorrow is just another day
4 REPLIES 4
Chuck J
Valued Contributor

Re: need Info on passwd map

Hi

I'm not exactly sure what you are trying to do. Can you explain further?

In your passwd file you can directly specify a users home directory in the second last field on the entry.

Chuck J
Sudhakar J_1
Advisor

Re: need Info on passwd map

Hi,

Sorry i forgot to explain..
Actually i am setting up a -paawd file based automounter map. I think it would be clear to you.
tomorrow is just another day
Mike Brown_3
Frequent Advisor

Re: need Info on passwd map

What makes you think you have to set up a (symbolic?) link?
If I understand you correctly, I think you should set up entries in /etc/auto_home such as follows;

user1 remotehost:/export/home/user1
user2 remotehost:/export/home/user2
user3 remotehost:/export/home/user3 ...etc.
(tabs between fields)

..... and back that with an entry in /etc/auto_master as follows;

/home auto_home -nobrowse
(again tabs between fields)

/home is empty while auto-mounts are NOT live, and is populated with user1, user2, user3 home dirs when they are.

Does this help?
There's no substitute for experience
Brian Hackley
Honored Contributor

Re: need Info on passwd map

Hi,

If all the user home directories are exported from /export/home/ of the same NFS server called "remotehost", the auto_home map suggested by Mike Brown could just be a single line that reads:

& remotehost:/export/home/&

..if you have one or two users bill and sue who mount from a different NFS server, then just put their entries before the "&" wildcard entries.

Automount wildcards explained in man automount, also HP NFS Manaul and 'Reilly "Managing NFS and NIS".

Hope this helps,

-> Brian Hackley
Ask me about telecommuting!