1 |
On Wed, May 23, 2012 at 02:42:46AM +0200, Alan McKinnon wrote |
2 |
|
3 |
> What filesystem is on that stick? |
4 |
> |
5 |
> For vfat and ntfs what you are truing should work. |
6 |
> For Unix file systems (ext*, reiser, etc), it will not work. You cannot |
7 |
> override owners and permissions with the mount command on those. |
8 |
|
9 |
Thanks. That does make sense. I wouldn't want my regular user |
10 |
account to be able to do stuff to root's files on my external backup |
11 |
(reiserfs). Experimentation confirms that posix/linux filesystems mount |
12 |
with the mountpoint being user:root and group:root when mounted or |
13 |
pmounted by root. FAT32 etc mounts as user:root and group:plugdev. |
14 |
Making my user account a member of the plugdev group, and pmounting with |
15 |
umask 007 allows me to do whatever I want to files on the USB stick. So |
16 |
I guess FAT32 has its uses. |
17 |
|
18 |
One last sticking point is manual unmounting. You obviously want to |
19 |
unmount properly before disconnecting a USB key or drive, if you've done |
20 |
any writing to it. If the pmount is done as root, pumount or umount has |
21 |
to be done as root. What's the proper sudoers wildcard syntax for |
22 |
unmounting a mountpoint under /media? Does this look OK? |
23 |
|
24 |
waltdnes d531 = (root) NOPASSWD: /bin/umount /media/sd[a-z][1-9] |
25 |
|
26 |
-- |
27 |
Walter Dnes <waltdnes@××××××××.org> |