On Sat, Jun 16, 2012 at 11:43 AM, Christiano F. Haesbaert
<[email protected]> wrote:
> On Sat, Jun 16, 2012 at 01:48:17PM +0200, Antoine Jacoutot wrote:
>> On Sat, Jun 16, 2012 at 12:39:36PM +0100, Mik J wrote:
...
>> > However, I'm unable to
>> > mount the partition if the owner of /mnt/extpart is root although that
mount
>> > point is rwx by the group operator and myuser belongs to that group.
>> > # ls -l
>> > /mnt
>> > drwxrwxr-x   2 root  operator  512 May  7 22:38 extpart
>> >
>> > I assume that
>> > kern.usermount allows a partition to be mounted only if the mount point
is
>> > owned by a user and the group owner is not considered.
>> > I have search for a
>> > variable kern.groupmount but there is not such thing.
>> >
>> > So my question is:
>> > Is
>> > it possible to allow a group to mount partitions (or usb keys, cdrom) ?
>>
>> Man mount(8).
>> "
>> Only the superuser may
>> mount file systems unless kern.usermount is nonzero (see sysctl(8)), the
>> special device is readable and writeable by the user attempting the
>> mount, and the mount point node is owned by the user attempting the
>> mount.
>> "
>
> Any special reason why not respecting groups ?
> This feels like a strange behaviour.

It's not obvious to me that it's safe.  For example, you would also
need a !(mode & S_ISTXT) test.  Should sys_unmount let other users in
the group unmount it?  Stacking of mounts by different users in the
same group?

Lacking any info about what problem this is supposed to be a solution
to, my response to the original question is
"Have each user mount somewhere they own and use a symlink"


Philip Guenther

Reply via email to