On Mon, 21 Feb 2011 18:58:38 -0500, David Relson wrote:

> I've also modified /etc/udev/rules.d/10-local.rules to use "pmount
> device label" rather than "mount -a".  This is mounting flash drives
> in /media as desired:

mount -a was always a bad idea, because it could potentially affect
drives other than the one the rule was intended for. What would happen if
you had unmounted a filesystem to run fsck on it and you plugged in your
USB drive?
> 
> root@osage media # ls -l
> total 32
> drwx------ 19 root plugdev 16384 Dec 31  1969 PNY
> drwx------  3 root plugdev 16384 Dec 31  1969 SD_2G
> 
> However (as can be seen above) the permissions are 700, which
> makes the drives unusable by members of the plugdev group.
> 
> Alternatively, I can use "pmount -u 007 device label" to provide full
> access to the plugdev group.  This seems awkward and inelegant.
> 
> What's the right way to use pmount and set permissions?

pmount is supposed to be run as a user and it mounts the filesystem owned
by the user running it. If you only have a single user, you could call
pmount with su. If you have multiple users, you should be letting a
desktop tool handle the mounting anyway.


-- 
Neil Bothwick

We all know what comes after 'X', said Tom, wisely.

Attachment: signature.asc
Description: PGP signature

Reply via email to