Adam Ryczkowski Asked: 2014-08-10 23:32:46 +0800 CST2014-08-10 23:32:46 +0800 CST 2014-08-10 23:32:46 +0800 CST How to set USER_SUBVOL_RM_ALLOWED capability? 772 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?? btrfs 1 Answers Voted Adam Ryczkowski 2014-08-11T03:03:33+08:002014-08-11T03:03:33+08:00 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
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