From: David Relson <relson@osagesoftware.com>
To: gentoo-user@lists.gentoo.org
Cc: neil@digimed.co.uk
Subject: Re: [gentoo-user] pmount question
Date: Tue, 22 Feb 2011 07:33:45 -0500 [thread overview]
Message-ID: <20110222073345.63ef98c8@osage.osagesoftware.com> (raw)
In-Reply-To: <20110222083706.3ff4de6f@digimed.co.uk>
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
next prev parent reply other threads:[~2011-02-22 13:04 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 [this message]
2011-02-22 13:23 ` Neil Bothwick
2011-02-22 13:32 ` Joost Roeleveld
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=20110222073345.63ef98c8@osage.osagesoftware.com \
--to=relson@osagesoftware.com \
--cc=gentoo-user@lists.gentoo.org \
--cc=neil@digimed.co.uk \
/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