STREBLO
Patron
- Joined
- Oct 23, 2015
- Messages
- 245
I recently started having this strange problem that I can't figure out. I'm using a program called znapzend for zfs send/recv and in the past has worked very well for me. Recently I started having this strange problem that I believe somehow has something to do with 'zfs allow' permissions.
The reason this problem is very strange is I am using the identical set up on 3 different computers, and in the past I have used this setup on the same computer I'm having the problem with, except this time it has caused an issue.
I want to run my send receive as a user 'replicator' with limited permissions. I am sending my datasets to datasets underneath 'tank/replication/' where I have set 'zfs allow' to:
I am sending from my laptop to data sets with this setting where I am able to use the user replicator with no problems
I have the same setup sending to this dataset, however only able to do it as a root.
When I try doing it as the user replicator I end up with:
I did try running it as root and then switching to the replicator user but that gave me a stream of errors looking like this:
I have set the dataset to be owned by the user replicator and the group replicator the same on both datasets. The properties on both computers are effectively identical. Does anyone have some idea what might be happening and what I could do to fix this problem? I'd rather not be sending as the root user
The reason this problem is very strange is I am using the identical set up on 3 different computers, and in the past I have used this setup on the same computer I'm having the problem with, except this time it has caused an issue.
I want to run my send receive as a user 'replicator' with limited permissions. I am sending my datasets to datasets underneath 'tank/replication/' where I have set 'zfs allow' to:
Code:
zfs allow tank/replication ---- Permissions on tank/replication --------------------------------- Local+Descendent permissions: user replicator compression,create,destroy,diff,mount,mountpoint,readonly,receive,release,send,userprop user create,destroy,diff,mount,readonly,receive,release,send,userprop
I am sending from my laptop to data sets with this setting where I am able to use the user replicator with no problems
Code:
zfs allow tank/replication/Tesla ---- Permissions on tank/replication --------------------------------- Local+Descendent permissions: user replicator compression,create,destroy,diff,mount,mountpoint,readonly,receive,release,send,userprop user create,destroy,diff,mount,readonly,receive,release,send,userprop
I have the same setup sending to this dataset, however only able to do it as a root.
Code:
zfs allow tank/replication/Atreides ---- Permissions on tank/replication --------------------------------- Local+Descendent permissions: user replicator compression,create,destroy,diff,mount,mountpoint,readonly,receive,release,send,userprop user create,destroy,diff,mount,readonly,receive,release,send,userprop
When I try doing it as the user replicator I end up with:
Code:
cannot unmount Operation not permitted warning: cannot send zfs
I did try running it as root and then switching to the replicator user but that gave me a stream of errors looking like this:
Code:
Nov 2 00:56:32 lilan collectd[3529]: statvfs(/mnt/tank/replication/Atreides/vault/home/john/dotfiles/config) failed: No such file or directory
I have set the dataset to be owned by the user replicator and the group replicator the same on both datasets. The properties on both computers are effectively identical. Does anyone have some idea what might be happening and what I could do to fix this problem? I'd rather not be sending as the root user