Questions tagged [autofs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Autofs fails to mount a Windows share

I've got two machines: a 10.0.0.1 Windows 10 which shares one folder /Users/WS/Shared/, and a 10.0.0.2 CentOS 7 from which I want to mount this share. I can do this from commandline using: mount -t ...
0 votes
1 answer
129 views

freeipa server home directory automount

I have installed freeipa-server on centos and enrolled an ubuntu server to it, I have a freebsd server which is our storage server(I am going to enrolled the freebsd (storage server) to this freeipa-...
1 vote
0 answers
171 views

autofs --timeout option not accurate

I have a simple autofs config where I set the option --timeout=30 on an indirect mapping. When I access the unmounted storage via ll /my/mount/path and do a watch -n1 "mount | grep /my/mount/path&...
0 votes
0 answers
164 views

Alpine docker autofs install for dynamic dotnet cifs access

I am trying to access a network share with specific credentials. It's to be used from a dotnet application that I am running in docker. My research conclusion is that autofs is the best way to do ...
0 votes
0 answers
212 views

How to change location of NFS share without changing autofs configuration

On our data server we currently share a location on an HDD raid /volume1/folder with multiple linux servers via autofs. Every server mounts this location to /data/shared/folder. We now updated to an ...
0 votes
1 answer
423 views

Need help setup mount seaweedfs with autofs or systemd automount

I want to mount on demand using autofs or systemd automount. But I can't get neither of it to work. With autofs. I have this file cat /etc/auto.weed /mnt/data -fstype=weed,allow_other,rw,filer=10.104....
1 vote
1 answer
2k views

LDAP + NFS + automount home directories permissions issue

When an LDAP user logs into the system they have incorrect permissions to their home directory. LDAP and NFS services exist on the same server. The directory shows the correct ownership / ...
2 votes
1 answer
2k views

nfs autofs automount of exported filesystems is empty on nfs server

I am having issues with empty nfs automounts on the nfs server itself. I'm running RHEL5.7 64bit exporting 4 directories as follows: /export/site/server13 *(fsid=0,rw,sync,crossmnt) /export/site/...
0 votes
0 answers
589 views

Using public / private key in SSH authentification through LDAP and NFS mounted home folder

I would like to use a public / private key to connect to a server which using LDAP for authentification. The issue is that the home folder is only mounted after login via AutoFS. How can I store the ...
0 votes
1 answer
279 views

Add additional option on all automounts brought in from +auto.master

I am looking for a way to enable cachefilesd across all automounts that we inherit via +master.conf. To do this, I need to be able to add -o fsc to the mount options. Is there a way to override the ...
0 votes
1 answer
1k views

Use autofs on host with Docker

I'm mounting CIFS share on a host to /mnt/nas using autofs. On the host I'm running a PHP Docker container. I can mount the /mnt/nas to this container using volumes inside a docker-compose.yml. The ...
1 vote
0 answers
1k views

How should we automount home directories stored at different NFS paths at /home/$USER?

We're currently transitioning to storing all of our organization's user information in Red Hat IDM (FreeIPA). We have several thousand users, and mount user home directories over NFS from a NetApp ...
6 votes
2 answers
10k views

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 ...
1 vote
2 answers
1k views

Why files disappear when using autofs

I have a disk mount as /local in the centos 5.3. Under /local/foldera/folderb/ I have lots of folders like: drwxrwxrwx root root 4096 DEC 10 10:40 Platformxx Then I've build another server and on ...
1 vote
0 answers
404 views

Modify folder permissions of parent directory that were automatically created by autofs

I am currently following this guide to setup CentOS 8 to automount samba shares. I am aware that we can change autofs auto mounted folders permissions using uid=...,gid=...,file_mode=0770,dir_mode=...
0 votes
1 answer
1k views

systemd based automount never umounts when idle

The setup (not autofs, but systemd based automount): # grep automount /etc/fstab 1.2.3.4:/vol/homedirs /home/roaming nfs x-systemd.automount,x-systemd.idle-timeout=30 and: # systemctl daemon-reload ...
1 vote
2 answers
2k views

Using LDAP: how to log in with SSH, mounting the Samba home directory with autofs?

I have spent some time setting up LDAP-based authentication in my MacOS, iOS and Linux network, taking account of the special quirks of MacOS and Synology (my NAS). SSH login (SSH keys etc.) works and ...
1 vote
1 answer
7k views

ldap_add: Invalid DN syntax (34)

I am configuring my LDAP for roaming profiles using autofs, but when I run this command ldapadd -x -D "cn=admin,dc=example,dc=com" -W -f automount.ldif I get this error message ldap_add: Invalid DN ...
1 vote
0 answers
879 views

autofs is not mounting sshfs point while sshfs and mount -t fuse does

folks. Recently I came over autofs and now trying to make my everyday life easier. I have a remote server that I use as I file share with a help of sshfs for years. So, I found some tutorials how to ...
0 votes
1 answer
367 views

auto mount several SD cards (one after the other) to the same directory

I have several SD cards with contents of type cont_A that I would like to mount to /mnt/cont_A if one of them is plugged into the computer. I have as well several SD cards with contents of type cont_B ...
0 votes
0 answers
390 views

NFS mount on housing user home shares not mounting on Ubuntu 16.04

The issue I am trying to resolve is a bit of a head-scratcher. I say that because the issue is consistently inconsistent and not happening on all of the Ubuntu 16.04 VMs that are hosted in our ESXi ...
10 votes
2 answers
20k views

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 ...
0 votes
2 answers
3k views

How to set up sshfs to use www-data

I have 2 Debian systems, prod1 and prod2, with their respective users, prod1 and prod2 as well. I want to setup an sshfs with autofs to have a directory on prod1 in the /home/prod1/ that the user www-...
3 votes
1 answer
4k views

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 ...
0 votes
1 answer
2k views

CentOS 7 autofs wildcard mount not working

I've got a couple of CentOS 7 client machines authenticating against OpenLDAP right now. The next step is to get autofs working. Which I have, but my map loads all users at once. I'd like to avoid ...
0 votes
1 answer
794 views

Disabling IP caching in samba or dealing with dynamic IP

We want to mount external storage that has been provided to us. We use something like the following in our /etc/fstab file on Ubuntu 18.04. //external/storage /mounting/point cifs noperm,cred=/home/...
2 votes
1 answer
2k views

What are the most common reasons for NFS auto mounts to fail?

Of course I need to solve a particular problem, but I'm hoping some more general answers on "how to troubleshoot automounting nfs" come up that will help more people with similar symptoms. We've got ...
2 votes
0 answers
187 views

Autofs and udev rules to restrict usb permissions to groups

I need some help trying to figure out how to restrict the reading and writing access of usb devices. There are two groups on my system: usbreaders: only should have rights to access and read the usb ...
0 votes
1 answer
3k views

Ubuntu cannot mount CIFS share from autofs and KRB5

I've inherited an Ubuntu 14 Fileserver... VERSION="14.04.5 LTS, Trusty Tahr" Client machine is a fresh install of Ubuntu 18 VERSION="18.04.2 LTS (Bionic Beaver)"<br> autofs/bionic-updates,...
1 vote
1 answer
2k views

autofs with samba, sssd, openldap, kerberos

I want to mount a samba share with autofs. srv.xxxxxxx.net is the samba server (proxmox container, Debian 10) ldap2.xxxxxxx.net is the openldap (proxmox container, Debian 10) gui.xxxxxxx.net is the ...
6 votes
4 answers
8k views

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 ...
0 votes
2 answers
5k views

"Too many levels of symbolic links" in NFS via automount resolved by restarting Docker

This is bizarre and while I have a workaround, I'd prefer a permanent fix. I have a small group of GPU machines running Ubuntu 14.04 which I am using as workers for a cloud service that's effected ...
3 votes
0 answers
3k views

SSHFS: Transport endpoint not connected

There are a number of posts across the Stack Exchange sites relating to the issue in the title, but none seem to offer that great a solution. This post I guess is a shameless attempt to bump the issue ...
3 votes
2 answers
22k views

How to set permissions for a CIFS mount with autofs?

I've set up a CIFS mount on my CentOS 6.4 server with autofs : File /etc/auto.mnt : Photos -fstype=cifs,perm,rw,uid=505,forceuid,gid=505,forcegid,file_mode=0770,dir_mode=0770,credentials=/root/...
1 vote
1 answer
6k views

LDAP/NFS/PAM/AutoFS : mkhomedir PAM plugin failling

I have a working setup with OpenLDAP (authentication and NFS mount options), NFS server, AutoFS (to mount the NFS homedir) and required PAM plugins. Everything works fine except the mkhomedir PAM ...
2 votes
1 answer
376 views

Install packages that create home directory on automounted Linux servers

When installing certain packages, for example gitlab-runner, a directory needs to be created in /home/. If the home directories are automounted on NFS, then installation will fail. $ sudo apt ...
2 votes
0 answers
188 views

nfs mounts over wrong subnet when another mount happens first

I have a weird issue with an NFS server and clients that are connected over two separate private subnets. The private subnets are 10.1.0.0/255.255.0.0 and 10.2.0.0/255.255.0.0 addressed as .local and ...
1 vote
0 answers
129 views

autofs ssh fuse and permissions issue

I have a mounted remote backup space on a Centos 6 to perform remote backups..which are doing fine.. without issues My /etc/auto.master file: /- /etc/auto.mymount uid=0,gid=0,--ghost My /etc/auto....
1 vote
0 answers
471 views

Autofs is forgetting mount points

I have a set of mount points which I use autofs to access. They have been around for quite some time, and in systems I've inherited running CentOS6 admins before me have implemented cronjobs ...
4 votes
1 answer
3k views

automount works but autofs wont mount

I know this subject has been discussed so many times that I'm almost ashamed I haven't found the solution to my issue yet. Clearly there is something I quite don't understand and would really ...
1 vote
0 answers
298 views

Monitoring NFS mounts for existence

The issue we are seeing is that some of our NFS mounted directories are disappearing. Literally just disappearing. They continue to exist at the server end. At the client (CentOS 7.4, using el-repo's ...
16 votes
4 answers
67k views

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 ...
1 vote
0 answers
88 views

Why does sssd query for all automountkeys when looking for a specific one?

I am attempting to convert autofs from using ldap maps to using sss maps. However, it appears that sssd wishes to query for all automount keys rather than just the specific one it needs. This is ...
0 votes
1 answer
533 views

Mount multiple NFS-Servers

I have multiple nfs-servers running in my network. What is the best way to mount all servers on my ubuntu? While researching I came across multiple possible solutions: autofs, fstab, automount. Any ...
3 votes
1 answer
2k views

autofs can't mount a remote dir with sshfs on the host with deprecated key algorithm

Here is my configuration: /etc/auto.master /mnt/10 /etc/auto.10 uid=0,gid=0,--ghost /etc/auto.10 root -fstype=fuse,allow_other,follow_symlinks,ssh_command=/etc/ssh/sshpass.10.sh :sshfs\#...
2 votes
0 answers
267 views

Linux - Active Directory - autofs service

We integrated our Linux environment into our AD 2016. Now an additional request is to add autofs service, via AD, to provide to the admins (Linux-admins, DB-admins, Application-admins) their personal /...
6 votes
1 answer
1k views

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 ...
0 votes
1 answer
733 views

CentOS 7 nfs server makes autofs nfs clients running macOS 10.11+ crash

I'm trying to figure out why macOS clients reboots when accessing files on a NFS home directory automounted from a CentOS 7 server. The exact same configuration works very well with CentOS 6 NFS ...
1 vote
0 answers
269 views

Ubuntu/OpenLDAP/Autofs : local user instead of LDAP user

I mount home directories for my LDAP users trhough autofs. It works like a charm except with one computer. On LDAP logs, I have : ldap rpc.mountd[975]: authenticated mount request from 192.168.0.XX:...
1 vote
0 answers
3k views

Autofs + Kerberos + NFSv4 works on RHEL, but not Ubuntu

We have our /home directories stored on a NetApp SVN, and are automounting them as NFSv4 with Kerberos. This seems to work flawlessly on RHEL7.x, however it will not work in Ubuntu 14.04 or 16.04 no ...