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 Bothwick

A consultant is a person who borrows your watch, tells you what time it
is, pockets the watch, and sends you a bill for it.

Attachment: signature.asc
Description: PGP signature

Reply via email to