Achim Gaedke wrote:
> 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.

It *SHOULD*.  The "owner" option should copy the permissions from the
device, which should have been set by the login system (this is
distribution-dependent.)  If it doesn't, you may want to contact the
mount(8) maintainer.

> That is the reason why uid and gid options fail, too.

Bullshit.  They work just fine, *exactly* because they run as root.
Some people create a group "floppy" and mount gid=floppy,umask=007.
>From a security standpoint, it is no worse (in fact, better in some
aspects) than what you propose.

> 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.

No, no, no, no, no.

It's fundamentally a broken concept.  You have no protection against
anyone "stealing" your mounted media, and I WILL NOT add support for
something that is that totally and fundamentally braindead.

Finally, a reminder: AUTOFS IS NOT THE RIGHT THING TO SUPPORT REMOVABLE
MEDIA.  Period.  Full stop.  Some people use it that way, but it's a
hack.  What we need is something more appropriate, like Solaris' vold.

        -hpa

Reply via email to