I want to delegate non-root user to delete read-only subvolumes (snapshots).

What exactly capabilities/rights I need to grant, so that he can remove his own read-only snapshots?

I've already mounted the btrfs with -o user_subvol_rm_allowed so users can remove read/write snapshots.

I need it to augment otherwise brillant SnapBtr.py, so non-root users can operate it.


A user can not delete readonly snapshots directly, but he can make them writeable first and then delete them. For this you need to use the btrfs property command:

btrfs property set -ts /path/to/snapshot ro false

If the user is the owner of the snapshot, this should make it writeable and therefore deletable.

  • That is cool. Thank you! Too bad, that the btrfs-tools v3.12 present on Ubuntu 14.04 does not include this command - but that is a different story. – Adam Ryczkowski Aug 13 '14 at 22:11
  • I also stumbled across this. TBH I think that's a plain btrfs bug. – Jürgen Strobel Feb 2 '16 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.