4

I try to remove btrfs snapshot as a normal user. I've read, that a user needs to have some special capability/right set: USER_SUBVOL_RM_ALLOWED. How to grant such capability to user??

Adam Ryczkowski
  • 4,403
  • 9
  • 40
  • 65

1 Answers1

2

This capability concerns mount point, not user (as it is suggested by the referenced question).

To add such capability one must remount/mount the filesystem with -o user_subvol_rm_allowed option (case sensitive).

e.g. this is the mount command I use to mount the btrfs partition with my documents:

sudo mount -t btrfs -o remount,user_subvol_rm_allowed,compress,rw,noacl,noatime,autodefrag /dev/mapper/mydocs /home/adam/docs

Adam Ryczkowski
  • 4,403
  • 9
  • 40
  • 65