[Bug 232021] zfs cannot mount 'dataset': Insufficient privileges

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 7 07:23:34 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232021

            Bug ID: 232021
           Summary: zfs cannot mount 'dataset': Insufficient privileges
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: supportsobaka at mail.ru

Unprivileged user will not mount dataset even with 'mount' permissions (by zfs
allow) and vfs.usermount=1 set. The same user will be able UNmount the dataset
(only id vfs.usermount=1, otherwise - not).

# zfs mount zroot/testset
cannot mount 'zroot/testset': Insufficient privileges

How to repeat:

1) Give permissions to unprivileged user bob:

#zfs allow -u bob mount,mountpoint,.... zroot

2) Check it

#zfs allow zroot

---- Permissions on zroot --------------------------------------------
Local+Descendent permissions:
        user bob
clone,create,destroy,diff,hold,mount,mountpoint,quota,receive,rollback,send,snapdir,snapshot,userprop

3) Set and check

# sysctl vfs.usermount=1
# sysctl -a|grep vfs.usermount

4) Now mount as bob

# zfs mount zroot/testset
cannot mount 'zroot/testset': Insufficient privileges

The problem has been also well described here
https://groups.google.com/forum/#!topic/mailing.freebsd.fs/3Wx4K7pJA7U

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list