On Sat, 22 Jul 2023 21:40:49 -0700
Russell Senior <[email protected]> wrote:

> On 7/22/23 16:36, [email protected] wrote:
> > I've set up autofs on 3 different computers and it works great.
> >
> > computer #4 will not work.
> >
> > I've checked everything I can think of and all I get is
> >
> > No such file or directory
> >
> > service autofs status
> >
> > says it is running.
> >
> > my fstab is set up correctly (verified by creating a mount point and using 
> > it)
> >
> > I've checked all of the configuration files against the working machine.
> >
> > I'm out of ideas.  
> 
> What distribution?
> 
> I don't really know anything about autofs, but I didn't see you mention 
> permissions. Probably worth checking those.
> 
> 


yes! That was the problem, but not the permissions having anything to do with 
the mount point, but with the /etc/auto.* config files.

The /etc/auto.* files are required to have 0644 permissions , i.e. rw-r--r--.  
I found this on an arch-linux autofs how to page that was very good.

Because of how they were copied (my synology makes hard for me to set the umask 
properly), they had acquired rw-r-xr-x permissions.

What's annoying is that when I ran automount in the foreground with debugging 
enabled, i.e.

  automount -f -d

it says nothing about the file permissions being wrong, it simply says it can't 
can't find the necessary information to mount the drive.

What's even more annoying is that I'm just about positive I've run up against 
this before.  It wasn't in my tips and tricks file, it is now.

Thank you,

Brian

Reply via email to