top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Autofs: can you mount only certain home dirs?

+1 vote
806 views

Does autofs take completed control of directories mentioned in auto.master? The examples with /home show that you can specify individual users instead of * and &, but even then it seems to take over the whole /home level so you can't see or add local subdirs.

I have a small group of users/hosts where I would like to at least temporarily mix/match who is automounted or not.

posted Aug 9, 2013 by Meenal Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

I am not sure what you are asking, but automounts are only mounted when you try to access them. I created symlinks to a separate folder (once I access a mount) so when I try to open symlink autofs mounts it for a given amount of time.

path from auto.server: /autofsmounts/server/ folder that will be created: extra symlink (created after "ls /autofsmounts/server/extra"): /server/extra -> /autofsmounts/server/extra

ls /server/extra will mount the server:extra for x seconds (--timeout x ).

If you place symlinks where you need them, you can have consistent path accessible from file managers. Maybe you can apply access limitations on a symlink (location) or something?

answer Aug 9, 2013 by Majula Joshi
What I want is to automount /home/user1 from a different server when user1 logs in (to any of sereral other servers), but leave the local copy of /home/user2 accessible. It looks like this is possible using the 'direct' /- syntax in auto.master but not by specifying /home and then only mentioning specific users in the auto.home file. In the latter case, only the subdirectories mentioned are automounted, but you can't access any local subdirectories under /home.
If I'm not mistaken, the direct method should work for what you are aiming at.

For example, you have the following line in /etc/auto.master:
/- /etc/auto.direct

Then /etc/auto.direct has :
/home/user1

You can create a local directory /home/user2 in addition to /home/user1 . The latter will be automounted but the former is your local directory.
Similar Questions
+2 votes

I have plugged a digital camera into my usb port and mounted it using the popup displayed from the auto detect via konqueror (this annoys me as well). When konqueror is launched it displays the contents via Camera:/ which is okay, but subsequently I can't find any entries under /run that represent the camera. I assumed there would be a mount point under /run like there is for a usb flash disk.

Given that there appears to not be a mount point under /run, where is it mounted in Fedora 20, so that I can point dolphin (which is what should be launched from the 'Open with File Manager' prompt, not Konqueror) at the mount point rather than having to manually type Camera:/ into the address bar.

+1 vote

Could someone please explain how can I mount secondary physical storage from Vold? Is it necessary to mount via fuse on top of the Vold?

+2 votes

Is there a way to mount HDFS directly on a Linux and Windows client? I believe I read something about there being some limitations, but that there is possibly a FUSE solution. Any information on this (with links to a how-to) would be greatly appreciated.

+2 votes

Is there any downside of having too many mounts (say 400 using autofs)?

...