On Tue, 22 Feb 2011 08:37:06 +0000 Neil Bothwick wrote: > On Mon, 21 Feb 2011 21:01:25 -0500, David Relson wrote: > > > > 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. > > > I've heard "pmount ... as a user" before, but never understood what > > it meant. If "pmount ..." is run by a rule > > in /etc/udev/rules.d/10-local.rules, how is it known what userid to > > use? Does "pmount ... as a user" assume particular settings in > > gnome, the kernel, or ??? > > pmount is meant to be run by a normal user, usually from an > automounter, as its main objective is to allow normal users to mount > removable devices without fstab rules, while udev rules are run as > root. So if you want it to run as a user from a udev rule you'll have > to use su, as in > > su youruser -c 'pmount /dev/PTY'
Neil: I'm currently using "pmount -u 007 /dev/PTY" as this gives rwx permissions for root and group plugdev, which is adequate for my workstation (which only ever has me using it). I've seen that Ubuntu with Gnome automounts USB sticks. That seems pleasantly convenient and is done without any rules (such as I presently have) in /etc/udev/rules.d. Do you know what they're doing? Regards, David