You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run btrbk run -v -progress --dry-run I get the following warnings:
WARNING: Skipping subvolume "154.186.17.112[22]:/home/user": Failed to fetch subvolume detail
WARNING: ... Command execution failed (exitcode=1)
WARNING: ... sh: ssh -p 22 [email protected] 'btrfs subvolume list -a -c -u -q -R '\''/home/user'\'''
WARNING: ... can't perform the search: Operation not permitted
The warning states that ssh -p 22 [email protected] 'btrfs subvolume list -a -c -u -q -R '\''/home/user'\''' is the command the program is trying to execute. The btrfs command is not appended with sudo -n like the documentation states (backend_local_user=btrfs-progs-sudo). ssh -p 22 [email protected] 'sudo -n btrfs subvolume list -a -c -u -q -R '\''/home/user'\''' would run just fine (with sudo -n added). This seems like a bug to me.
If I change ssh_user to root, the program will run fine too, but my goal is to disable root logins for ssh. Is there any way to achieve this?
The text was updated successfully, but these errors were encountered:
JorisBlom
changed the title
btrbk doesn't append a command with "sudo -n" if ssh is enabled and backend_local_user=btrfs-progs-sudo
btrbk doesn't append a command with "sudo -n" if ssh is used and backend_local_user=btrfs-progs-sudo
Jul 16, 2024
I added the commands btrfs, readlink, and test to the sudoers file on both systems to make btrbk without sudo possible. My
btrbk.conf
file is:When I run
btrbk run -v -progress --dry-run
I get the following warnings:The warning states that
ssh -p 22 [email protected] 'btrfs subvolume list -a -c -u -q -R '\''/home/user'\'''
is the command the program is trying to execute. The btrfs command is not appended withsudo -n
like the documentation states (backend_local_user=btrfs-progs-sudo
).ssh -p 22 [email protected] 'sudo -n btrfs subvolume list -a -c -u -q -R '\''/home/user'\'''
would run just fine (withsudo -n
added). This seems like a bug to me.If I change ssh_user to root, the program will run fine too, but my goal is to disable root logins for ssh. Is there any way to achieve this?
The text was updated successfully, but these errors were encountered: