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 <[email protected]>

Reply via email to