Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] "btrbk diff" without "sudo" throws error (backend_local_user=btrfs-progs-sudo) #593

Open
JorisBlom opened this issue Jul 17, 2024 · 0 comments

Comments

@JorisBlom
Copy link

JorisBlom commented Jul 17, 2024

I added the commands btrfs, readlink, and test to the sudoers file and set backend_local_user=btrfs-progs-sudo. btrbk without sudo should now be possible. However, 'btrbk diff user.20240714T0229 user.20240716T1705' returns:

btrbk diff user.20240714T0229 user.20240716T1705
ERROR: Failed to fetch modified files for: /mnt/backup/user.20240716T1705
ERROR: ... Command execution failed (exitcode=1)
ERROR: ... sh: btrfs subvolume find-new '/mnt/backup/user.20240716T1705' 1632
ERROR: ... can't perform the search: Operation not permitted
ERROR: ... can't perform the search: Operation not permitted

It is trying to execute btrfs subvolume find-new '/mnt/backup/user.20240716T1705' 1632. This command is not appended with sudo -n like it should be (backend_local_user=btrfs-progs-sudo). Therefore, the command fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant