Hi there!
I had the same problems. My wish is to support removable media mounted, owned
and unmounted by any user.
The owner option does not provide a solution, because automount runs everytime
as root.
That is the reason why uid and gid options fail, too.
Maybe it is a good idea to extend the comunication to the automount deamon by
uid and gid from current->uid and current->gid on kernel side. This information
can be used to provide suitable Variable Substitution. So this line for my zip
disk is possible:
zip -fstype=auto,user=${uid},uid=${uid},gid=${gid},umask=077
it would be nice to put such information into the environment or option line of
a program map, too.
I like to know your opinion.
Yours, Achim
Robert Joop schrieb:
>
> On 02-04-22 23:20:41 CEST, Peter Toft wrote:
> > I can do the
> > usb -fstype=auto,uid=500,gid=500 :/dev/sda1
> > but this will only give user #500 the
> > read/write-access. Assume that we like my wife, kid,
> > and dog :) to have writeaccess - whoever mounts the
> > device (typically a vfat formatted device).
>
> how about umask=0?
> it will still be owned by root.root, but everyone will have rw access.
>
> my laptop's /etc/auto.removable has
>
> floppy -fstype=vfat,sync,nodev,nosuid,umask=0 :/dev/fd0
>
> rj