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: > > Hello, > > > > I'm able to mount a partition as a user if I have > > kern.usermount=1 > > # > > ls -l /dev/wd2* > > brw-rw---- 1 root operator 0, 0 May 7 21:54 /dev/wd2a > > # ls -l /mnt > > drwxrwxr-x 2 myuser operator 512 May 7 22:38 extpart > > and > > # > > grep operator /etc/group > > operator:*:5:root,myuser > > > > 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.