From: Joost Roeleveld <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] pmount question
Date: Tue, 22 Feb 2011 14:32:23 +0100 [thread overview]
Message-ID: <20110222133609.C99192569@data.antarean.org> (raw)
In-Reply-To: <20110222073345.63ef98c8@osage.osagesoftware.com>
On Tuesday 22 February 2011 07:33:45 David Relson wrote:
> 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?
Gnome (and most other desktop environments) can be configured to auto-mount a
USB-drive, CDs,...
Gnome will, as is mentioned previously, probably use "pmount" started as the
current user which will then mount the drive with the user as the owner.
udev-rules are only really needed when you don't (want to) use an automounter
with your X-desktop.
I myself use KDE and there I can specify if I want a USB-drive mounted or not.
I believe I can also specify some USB-drives to auto-mount when I plug them
in. But I do prefer to be able to decide each time as sometimes I just plug in
my phone or camera to charge it. (My phone also acts like a usb-drive when so
configured)
--
Joost
next prev parent reply other threads:[~2011-02-22 14:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-21 23:58 [gentoo-user] pmount question David Relson
2011-02-22 0:11 ` Neil Bothwick
[not found] ` <20110221210125.34e17f3b@osage.osagesoftware.com>
2011-02-22 8:37 ` Neil Bothwick
2011-02-22 12:33 ` David Relson
2011-02-22 13:23 ` Neil Bothwick
2011-02-22 13:32 ` Joost Roeleveld [this message]
2011-02-22 14:24 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110222133609.C99192569@data.antarean.org \
--to=joost@antarean.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox