session-pysogs icon indicating copy to clipboard operation
session-pysogs copied to clipboard

Read-only operations with sogs should not require superuser privileges.

Open ianmacd opened this issue 3 years ago • 2 comments

$ sogs -L
This script must run as root (e.g. via sudo)

Why?

ianmacd avatar Feb 14 '22 09:02 ianmacd

It doesn't exactly run as root, but rather as the _loki user it installs during installation (which owns the files, including the database, etc.). It needs root to be able to change users. (Alternatively it lets you run it as non-root if you change to the _loki user yourself first, but that's a bit obscure).

jagerman avatar Feb 14 '22 14:02 jagerman

The wrapper script itself is pretty simple: https://github.com/oxen-io/session-pysogs/blob/debian/sid/debian/sogs

jagerman avatar Feb 14 '22 14:02 jagerman