Re: `zfs allow` on NetBSD - what other perms for mounting FS created with `zfs create`?

Brad Spencer <[email protected]>
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
vsis <[email protected]> writes:

> On 4/21/26 18:06, Jeff Rizzo wrote:
>> I'm currently playing around with delegating certain actions to ordinary 
>> users
>
>
> What if you just install/use `security/doas`.
>
>
> Something like `permit nopass riz as root cmd /sbin/zfs` in doas.conf 
> should work, I believe.
>
> User riz will be able to run `doas zfs` as root, but no other commands. 
> Unless you allow other commands in doas.conf
>
> Then, an alias like `zfs="doas zfs"` makes the typing even easier.
>
>
> vsis <[email protected]>


I believe that would allow the user to mess with every zfs fileset, not
just particular ones, which is what you can get with "zfs allow".

It should be generally safe to allow /dev/zfs to have more open
permissions.  I run with that all of the time and I could not come up
with a test that allowed a not-root user to do something they shouldn't.




-- 
Brad Spencer - [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.