1 |
On Mon, 21 Feb 2011 21:01:25 -0500, David Relson wrote: |
2 |
|
3 |
> > pmount is supposed to be run as a user and it mounts the filesystem |
4 |
> > owned by the user running it. If you only have a single user, you |
5 |
> > could call pmount with su. If you have multiple users, you should be |
6 |
> > letting a desktop tool handle the mounting anyway. |
7 |
|
8 |
> I've heard "pmount ... as a user" before, but never understood what it |
9 |
> meant. If "pmount ..." is run by a rule |
10 |
> in /etc/udev/rules.d/10-local.rules, how is it known what userid to |
11 |
> use? Does "pmount ... as a user" assume particular settings in gnome, |
12 |
> the kernel, or ??? |
13 |
|
14 |
pmount is meant to be run by a normal user, usually from an automounter, |
15 |
as its main objective is to allow normal users to mount removable devices |
16 |
without fstab rules, while udev rules are run as root. So if you want it |
17 |
to run as a user from a udev rule you'll have to use su, as in |
18 |
|
19 |
su youruser -c 'pmount /dev/PTY' |
20 |
|
21 |
|
22 |
-- |
23 |
Neil Bothwick |
24 |
|
25 |
A consultant is a person who borrows your watch, tells you what time it |
26 |
is, pockets the watch, and sends you a bill for it. |