public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] pmount question
Date: Tue, 22 Feb 2011 08:37:06 +0000	[thread overview]
Message-ID: <20110222083706.3ff4de6f@digimed.co.uk> (raw)
In-Reply-To: <20110221210125.34e17f3b@osage.osagesoftware.com>

[-- Attachment #1: Type: text/plain, Size: 1099 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2011-02-22  9: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 [this message]
2011-02-22 12:33       ` David Relson
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=20110222083706.3ff4de6f@digimed.co.uk \
    --to=neil@digimed.co.uk \
    --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