Questions tagged [autofs]

128 questions
16
votes
4 answers

Mount CIFS share with autofs

I have a system running RHEL 5.5, and I am trying to mount a Windows share on a server using autofs. (Due to the network not being ready upon startup, I do not want to utilize fstab.) I am able to mount the shares manually, but autofs is just not…
Phanto
  • 991
  • 7
  • 16
  • 24
11
votes
2 answers

Why do some host volumes in Docker containers give the error "too many levels of symbolic links"?

I'm running docker with a host directory mounted: $ docker run -v /usr/groups/thing -ti imagename /bin/bash Files in /usr/groups/thing/foo are accessible: # ls /usr/groups/thing/foo a b c But files in /usr/groups/thing/bar are not: # ls…
8
votes
1 answer

How to prevent autofs from mounting over specific directories?

I have a workstation, on which I have a local user account with a local home directory. I'm also a part of an organization, in which I have a NIS user/home directory. I would like to setup autofs in order to access some shared NFS directories. The…
Nir
  • 183
7
votes
2 answers

How to configure autofs5 timeout on per-filesystem basis?

Because of a show-stopping bug in Debian autofs 4, I just upgraded to autofs5. It is not honoring the timeout option in my auto.master file: /var/autofs/removable /etc/auto.removable --timeout=2 I use this map for thumb drives and so on; I don't…
6
votes
4 answers

What is the correct escaping for autofs mount credentials files?

I have configured autofs on CentOS using /etc/auto.mymount. Something like this: mymount -fstype=cifs,rw,noperm,credentials=/etc/auto.creds.svc_account ://winserver.domain.local/SharedFolder This has been working and still does for some mounts.…
Steve
  • 121
6
votes
1 answer

using chained automount to mount home directory

I have set up two directories mounted with automount (via LDAP): in the /home directory automount is configured to mount * -fstype=bind :/network/srv/home/& in the /network directory one entry srv …
6
votes
1 answer

Mount to NFS export of autofs mount shows empty contents

I use autofs to mount some iso files in folder /mnt/iso: Fedora-13-x86_64-DVD.iso Fedora-14-x86_64-DVD.iso Fedora-15-x86_64-DVD.iso The autofs is working fine and I can see the contents of iso files: # ls /mnt/iso/fedora.13/ # ls…
6
votes
2 answers

Why directories mounted with autofs are not visible in filesystem, but are accessible once full path is provided?

This is my first nfs / autofs configuration, so I probably configured something wrong. When I navigate to directory, which I added to /etc/auto.master I can't see any mount points, but when I issue cd with full path to expected mount point, than it…
5
votes
2 answers

Centos 7 autofs mount doesn't work right after reboot

I've setup autofs on Centos 7. However, it seems like after reboot, it took some time to mount /home/ directory, even when I 'cd' into it. It only succeeds after 3 tries: [root@localhost ~] cd /home/ -bash: cd: /home/: No such file or…
surfcode
  • 245
5
votes
2 answers

Keeping user's filesystem persistent across AWS EC2 spot instances

I noticed that, after a new Amazon AWS EC2 spot instance is auto-launched (I have that option turned on), the state of filesystem is not current (represent the last state before previous spot instance is auto-shutdown due to current price going over…
5
votes
0 answers

AutoFS wildcard subdirectory

I am trying to automount /home/users//secure for all users using AutoFS. Naturally I would put down this line as a direct map: /home/users/*/secure -fstype=nfs4,rw,sec=krb5p jupiter:/home/users/& However according the documentation: You…
5
votes
2 answers

Does an NFS export with sec=krb5 *require* that the parent directory also be exported with sec=krb5?

I copied somebody's NFS server/client setup verbatim and am having trouble making sense of what's going on with it. This is the /etc/exports: /export *(rw,fsid=0,crossmnt,insecure,async,no_subtree_check,sec=krb5p:krb5i:krb5) /export/home…
4
votes
0 answers

Mount CIFS-share with users Kerberos-Ticket

we want to mount shares through autofs. Nothing special we thought. But: this must be done in some complex active directory circumstances. What we have: integrated Ubuntu 14.04 workstations on which users can login with their windows credentials.…
cbuchey
  • 51
4
votes
1 answer

autofs and NFS failover - can autofs remount?

I have this scenario: 2 NFS servers with /usr/share/man as exports (just as example, it can be anything), let say server A and server B (not replicas, just 2 independent servers on the same subnet sharing the same things) both NFS servers are up…
yusa.viktor
  • 41
  • 1
  • 3
4
votes
1 answer

How to programmatically umount filesystems mounted by autofs?

I have some RHEL systems where I need to disable autofs. What I typically do is run a script on each of these hosts that executes something like this: # /etc/init.d/autofs stop ... # /sbin/chkconfig autofs off ... # reboot But I have a situation…
1
2 3
8 9