Operating System - HP-UX
1834450 Members
2317 Online
110067 Solutions
New Discussion

Re: Automounter - does not show subdirectory but I can go there

 
CDI Support
Advisor

Automounter - does not show subdirectory but I can go there


I am using automounter with NIS and O/S is 11.00.

I could see all subdirectories whatever is mounted using auto.direct.
I do not see subdirectories for other nfs filesystems mounted using auto.history (automounter file) but I can go there & see everything.

example:
/test has lot of subdirectories. When I go there do not see anything. I can cd to /test/abcd then ls -l shows all the files there.

Is it normal ? if it is a prob. what is the solution ?

Thanks in advance
Mainak M. Das
1 REPLY 1
Shannon Petry
Honored Contributor

Re: Automounter - does not show subdirectory but I can go there

The only solution is to change your automounters configuration. This is not a bug, but normal automounter behavior!

I.E. Home directories mounted via automounter.
>map /etc/auto.home
john.doe somehost:/export/john.doe
>map /etc/auto.master
/home /etc/auto.home

If a request is made for the directory "/home/john.doe" the automounter recognizes this as a trigger to make the mount defined in auto.home as somehost:/export/john.doe and mounts this to /home. Untill the mount is request is made, the mount does not exist. This is what makes the automounter so powerfull.

You have to know where your going to get there is a very nice thing not only to save system resources, but a bit more secure than windows browsing! While it seems nice on the inside, all that info is available to the outside as well. While there are ways to do a similar thing with UNIX exported file systems, it is not as easy as "net view"'ing.

In order to (in your words [fix]) change this behavior you must change the mappings. If you have sub directories being mapped separatly and want to see them, remove the separate mappings for each sub directory, and map only the base directory.

Regards,
Shannon
Microsoft. When do you want a virus today?