Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Oct 2018 07:23:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232021] zfs cannot mount 'dataset': Insufficient privileges
Message-ID:  <bug-232021-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232021

            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@FreeBSD.org
          Reporter: supportsobaka@mail.ru

Unprivileged user will not mount dataset even with 'mount' permissions (by =
zfs
allow) and vfs.usermount=3D1 set. The same user will be able UNmount the da=
taset
(only id vfs.usermount=3D1, 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=3D1
# 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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232021-227>