Bug#335889: autofs: Set accessing user in environment variable
Package: autofs Version: 4.1.4-8 Severity: wishlist I want to automount usb sticks when I plug then into my computer (and the directory is entered). The combination of udev and automount makes this possible: with udev I make sure the stick gets a constant device name, and I use that for automount (actually I use a directory to support more than one at a time). The problem is that I want the device to be usable for the user who mounts it. For ext2 devices, it should just use the permissions that are on it, but most sticks have a vfat system on them. I want to mount them with uid= and gid= as the user who instantiates the automount. I am using a program for the mounting. The easiest would be if there were some environment variable set to the UID (and perhaps the GID) of the user. Then that can be used to generate the correct output. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages autofs depends on: ii libc6 2.3.5-6GNU C Library: Shared libraries an ii ucf 2.002 Update Configuration File: preserv Versions of packages autofs recommends: ii nfs-common1:1.0.7-3 NFS support files common to client -- debconf information: autofs/upgrade-from-broken-version: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#335889: autofs: Set accessing user in environment variable
On Wed, Oct 26, 2005 at 05:19:59PM +0200, Bas Wijnen wrote: The problem is that I want the device to be usable for the user who mounts it. For ext2 devices, it should just use the permissions that are on it, but most sticks have a vfat system on them. I want to mount them with uid= and gid= as the user who instantiates the automount. You cannot do this with current automount, sorry. The kernel simply does not supply that kind of data to the autofs daemon. gnome-volume-manager can AFAIK do exactly what you want without help from autofs; I'm not aware of any non-GNOME programs that can do the same thing, but they probably exist. :-) /* Steinar */ -- Homepage: http://www.sesse.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]