From c9e0e6bcd5c9af65e433b838dbfb68a7984237ed Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 18 Feb 2022 11:35:38 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 1efeaef4..e6cf2ac4 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -50,8 +50,8 @@ def as_borg(caps=set()): for capset in [cap_permitted, cap_inheritable, cap_effective, cap_ambient]: capset.add(*caps) - os.setuid(borg_pwd.pw_uid) os.setgid(borg_pwd.pw_gid) + os.setuid(borg_pwd.pw_uid) def read_repo(path): with Halo(text=f'Listing {path}', **halo_args) as sp: -- cgit v1.2.3