hatkidchan / mastoposter

Mastodon to [anything] reposter. Anything being {Telegram, Discord} for now.
GNU General Public License v3.0
28 stars 3 forks source link

Drop root permissions after reading config file #38

Closed CyberTailor closed 1 year ago

CyberTailor commented 1 year ago

Tries to change user/group from root to nobody:nobody, logs on failure.

Does nothing if not running as root.

CyberTailor commented 1 year ago

User/group could be made configurable via config file or cli.

hatkidchan commented 1 year ago

I feel like it would kill portability (especially on Windows). Plus, it should not be run as root in the first place anyways

CyberTailor commented 1 year ago

Ok, so making a new user is the preferred solution.