Autofs directory/filesystem permissions

Matthew Gibbins MJGibbins at operamail.com
Wed May 1 13:18:52 EST 2002


And yo was Sam Couter heard to yodel:
> Matthew Gibbins <MJGibbins at operamail.com> wrote:
> >   Understandable there. However, is there a way to tell the autofs
> >   daemon what permissions to use for the given directory?
> >   
> >   I have a directory /mnt/fdisk under which I mount the floppy drive.
> >   When autofs is not running it has the following permissions
> >   drwxrwxr-x    2 root     floppy         48 Jan 20 18:18 /mnt/fdisk/
> >   This is to match those for /dev/fd0.
> >   
> >   However, when I activate autofs the directory reports as follows.
> >   drwxr-xr-x    2 root     root            0 May  1 07:10 /mnt/fdisk/
> >   That is autofs overwrites the filesystem permissions and I was
> >   wondering if there is a way to specify how the daemon handles the
> >   permissions.
> 
> That's easy: For filesystems with ownership and permissions capabilities
> (ext2, ext3, reiser, etc) the filesystem itself specifies the ownership
> and permissions. For filesystems without ownership and permissions
> capabilities (any of the FAT filesystems), use the appropriate options
> to the mount command. man mount, and you probably want to use uid, gid
> and umask.

I think I get you now.
Just for clarification here's the contents of /etc/auto.master and
/etc/auto.floppy

#/etc/auto.master
/mnt/cdrom /etc/auto.cdrom
/mnt/fdisk /etc/auto.floppy
/mnt/misc /etc/auto.misc

#/etc/auto.floppy
floppy -fstype=auto,defaults,user,sync  :/dev/fd0


-- 
 I'm not advocating that anyone take up emacs.
 Not even me: at my age, I'd be more likely to try bungee-jumping. 
 It's easier, and has less risk of causing permanent brain damage.
**  A posting on ZDNet forum




More information about the linux mailing list