Yes, it does. I'm still missing some information, though. Could you
send the output of pmount (only, without arguments/options) when the
device is mounted ?

$ pmount
Printing mounted removable devices:
/dev/sde1 on /media/TDK2 type vfat (rw,nosuid,nodev,noexec,noatime,gid=1010,fmask=0117,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,quiet)
To get a short help, run pmount -h

  Or, in other words, is it mounted with gid=plugdev ? Do you have an
idea of which program is mounting the device ?

$ cat /etc/group | grep 1010
plugdev:x:1010:haldaemon,adam

Yes, it is being mounted with gid=plugdev. I set up auto mounting when hotplugging via udev, using a script on the Gentoo wiki. The article is gone now, but it's still there in the Google cache: http://72.14.235.132/search?q=cache:-1inxeFgPsEJ:da.gentoo-wiki.com/UDEV+mount-device.sh&hl=en&strip=1

Basically the script figures out which device was hotplugged, and (in the case of the TDK2 flashdrive above) then runs this command:

/usr/bin/pmount --noatime --umask 007  "/dev/sde1" "TDK2"

I believe the mountpoint is mounted with gid=plugdev because the pmount binary is marked SGID:

$ ls /usr/bin/pmount
-rws--s--- 1 root plugdev 40K 2008-12-07 10:07 /usr/bin/pmount

Cheers,
Adam.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to