Bug 228423 - "zfs allow userprop" does not allow receiving user properties
Summary: "zfs allow userprop" does not allow receiving user properties
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-22 14:27 UTC by Lapo Luchini
Modified: 2018-05-22 15:19 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lapo Luchini 2018-05-22 14:27:09 UTC
`man zfs` description leads me to think that "zfs allow"'s "userprop" would allow the user to set any user property, but when I'm using "zfs recv -Fu" I get errors like this:

  cannot receive recordsize property on z/backup/tmp/z/var/db/mysql: permission denied
  cannot receive setuid property on z/backup/tmp/z/var: permission denied
  cannot receive exec property on z/backup/tmp/z/var: permission denied
  cannot receive setuid property on z/backup/tmp/z/var/tmp: permission denied

Those can be solved by "zfs allow"ing then individually, but this means that when the backup source will use new properties I will have to re-issue "zfs allow" on the receive side; it would be best to have a way (any way) to accept all properties with no need to allow them individuallly.
Comment 1 Andriy Gapon freebsd_committer freebsd_triage 2018-05-22 14:54:16 UTC
(In reply to Lapo Luchini from comment #0)
Which of those properties are user properties? (hint: none)
Please re-read the manual page for the definition of user properties.
Comment 2 Lapo Luchini 2018-05-22 15:05:48 UTC
You're sure right at that, but while not being a bug, the usecase stands: is there any way to allow receiving all properties without enabling them one by one?
Comment 3 Andriy Gapon freebsd_committer freebsd_triage 2018-05-22 15:19:22 UTC
We have forums and mailing lists for asking questions and discussing problems and potential bugs.  I do not have an answer to your question, but I am sure that you will find more help in those venues.  Also, there are resources on OpenZFS usage and administration.  Your question does not appear to be FreeBSD specific.