Hi,
I would like to have a zfs user that can do some zfs commands, so I can run a script as this user, and not have to run it as root.
Question
Any ideas what is wrong?
This is what I did
I would like to have a zfs user that can do some zfs commands, so I can run a script as this user, and not have to run it as root.
Question
Any ideas what is wrong?
This is what I did
Code:
pw useradd zfs -s /usr/local/bin/bash -d /home/zfs
mkdir -p /home/zfs
chown zfs /home/zfs/
zfs allow -u zfs create,destroy tank3
setfacl -m user:zfs:full_set:fd:allow /tank3
su -m zfs -c "zfs create tank3/gggdfsdf"
Code:
cannot create 'tank3/gggdfsdf': permission denied
Code:
# zfs allow tank3
---- Permissions on tank3 --------------------------------------------
Local+Descendent permissions:
user zfs create,destroy
# getfacl /tank3/
# file: /tank3/
# owner: root
# group: wheel
user:zfs:rwxpDdaARWcCos:fd----:allow
owner@:rwxp--aARWcCos:------:allow
group@:r-x---a-R-c--s:------:allow
everyone@:r-x---a-R-c--s:------:allow