public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] OT: mount so that other users can write to mounted dir?
Date: Thu, 24 May 2012 03:41:35 -0400	[thread overview]
Message-ID: <20120524074135.GB7210@waltdnes.org> (raw)
In-Reply-To: <20120523024246.539347a1@khamul.example.com>

On Wed, May 23, 2012 at 02:42:46AM +0200, Alan McKinnon wrote

> What filesystem is on that stick?
> 
> For vfat and ntfs what you are truing should work.
> For Unix file systems (ext*, reiser, etc), it will not work. You cannot
> override owners and permissions with the mount command on those.

  Thanks.  That does make sense.  I wouldn't want my regular user
account to be able to do stuff to root's files on my external backup
(reiserfs).  Experimentation confirms that posix/linux filesystems mount
with the mountpoint being user:root and group:root when mounted or
pmounted by root.  FAT32 etc mounts as user:root and group:plugdev.
Making my user account a member of the plugdev group, and pmounting with
umask 007 allows me to do whatever I want to files on the USB stick.  So
I guess FAT32 has its uses.

  One last sticking point is manual unmounting.  You obviously want to
unmount properly before disconnecting a USB key or drive, if you've done
any writing to it.  If the pmount is done as root, pumount or umount has
to be done as root.  What's the proper sudoers wildcard syntax for
unmounting a mountpoint under /media?  Does this look OK?

waltdnes  d531 = (root) NOPASSWD: /bin/umount /media/sd[a-z][1-9]

-- 
Walter Dnes <waltdnes@waltdnes.org>



      parent reply	other threads:[~2012-05-24  7:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23  0:26 [gentoo-user] OT: mount so that other users can write to mounted dir? Walter Dnes
2012-05-23  0:42 ` Alan McKinnon
2012-05-23 23:25   ` Walter Dnes
2012-05-24  7:41   ` Walter Dnes [this message]

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=20120524074135.GB7210@waltdnes.org \
    --to=waltdnes@waltdnes.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