Hi folks,
Anybody ever made use of User Properties for datasets/snapshots?
In the ZFS man pages I read about User Properties, so I thought I would experiment a little. I have a potential use for this which would require an unprivileged user to be able to set User Properties on snapshots of a dataset. This is what I've tried so far:
1. create a new dataset ...
2. allow admin privileges ...
3. now as "justin" create a snapshot ...
4. as "justin" try to set a User Property for the snapshot ...
results in ...
However I am able to set User Properties on any dataset or snapshot as the root user (just using sudo).
So is it simply not possible to set User Properties as unprivileged users? Does anybody know of a way to do this?
Thanks in advance - JB
Anybody ever made use of User Properties for datasets/snapshots?
In the ZFS man pages I read about User Properties, so I thought I would experiment a little. I have a potential use for this which would require an unprivileged user to be able to set User Properties on snapshots of a dataset. This is what I've tried so far:
1. create a new dataset ...
sudo zfs create zfsdata/test
2. allow admin privileges ...
sudo zfs allow -u justin create,destroy,snapshot,mount zfsdata/test
3. now as "justin" create a snapshot ...
zfs snapshot zfsdata/test@snap1
4. as "justin" try to set a User Property for the snapshot ...
zfs set home.jb:myproperty=testing123 zfsdata/test@snap1
results in ...
cannot set property for 'zfsdata/test@snap1': permission denied
However I am able to set User Properties on any dataset or snapshot as the root user (just using sudo).
So is it simply not possible to set User Properties as unprivileged users? Does anybody know of a way to do this?
Thanks in advance - JB