Add runuser mode for various operations #39

Closed
opened 2026-04-22 20:53:40 +02:00 by baeuchle · 1 comment
Owner

For git operations, it may be desirable to run them as unpriviliged user, while copy may require elevated permissions.

E.g., instead of:
sudo sayod-backup copy
sayod-backup replace-git

We might want
sudo sayod-backup copy

with
[context]
providers = accesslist replacor

[accesslist]
action = acl
unless = always

[replacor]
action = sayod
command = replace-git
before = no
runuser = my_unpriviliged_account

For git operations, it may be desirable to run them as unpriviliged user, while copy may require elevated permissions. E.g., instead of: sudo sayod-backup copy sayod-backup replace-git We might want sudo sayod-backup copy with [context] providers = accesslist replacor [accesslist] action = acl unless = always [replacor] action = sayod command = replace-git before = no runuser = my_unpriviliged_account
Author
Owner

The issue is even larger:

  • notifications should be runnable as different user
  • all providers (looking at you, ManualProvider) should be runnable as different user.
The issue is even larger: - notifications should be runnable as different user - all providers (looking at you, ManualProvider) should be runnable as different user.
baeuchle changed title from Add runuser mode for git operations to Add runuser mode for various operations 2026-04-23 11:06:26 +02:00
baeuchle added this to the v6.0.0 milestone 2026-04-23 11:09:11 +02:00
baeuchle referenced this issue from a commit 2026-04-27 08:57:12 +02:00
baeuchle referenced this issue from a commit 2026-04-27 10:46:15 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
baeuchle/sayod#39
No description provided.