Hi!

I'm setting up autofs for removeable disk access (floppy & zip), but can't
seem to get it writeable for any but root:

[lrclause@coral lrclause]$ ls -ld /disks/floppy
drwxr-xr-x   2 root     root         7168 Dec 31  1969 /disks/floppy
[lrclause@coral lrclause]$ ls -l /dev/fd0
brw-rw-rw-   1 lrclause floppy     2,   0 May  5  1998 /dev/fd0
[lrclause@coral lrclause]$ cat /etc/auto.disks
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

floppy         -fstype=umsdos,user,nosuid,noexec,sync,nodev     :/dev/fd0
cdrom          -fstype=auto,nosuid,noexec,sync,nodev    :/dev/cdrom

I haven't been able to find anything related to this in the docs or a quick
grep of the source.  What I have found is that the umask of the mounting
process is used for the mountpoint, so if I mount it manually with a 000
umask, I get it world-writeable.

So the question is:
Should I try and hack autofs to have a umask (or perms) option to allow
specific settings (I'll also want eventually to do home dirs by autofs, so
I don't want it globally set), or should I get autofs to make the automount
point to be owned by the one who accesses it, or is there some other known
solution to this problem?

My system is a RedHat 6.0 with kernel 2.2.14 on an i386, using autofs 3.1.3.

Kindly,
-Lars

-- 
Lars R. Clausen (http://shasta.cs.uiuc.edu/~lrclause)   H�rdgrim of Westfield
"I do not agree with a word that you say, but I will defend to the death your
right to say it."                                      --Evelyn Beatrice Hall

Reply via email to