Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] pmount question
Date: Tue, 22 Feb 2011 09:04:08
Message-Id: 20110222083706.3ff4de6f@digimed.co.uk
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.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] pmount question David Relson <relson@×××××××××××××.com>