DEV Community

Peter Timoshevsky
Peter Timoshevsky

Posted on

1 1

Systemd security w/o User directive

So every systemd service whose unit file has no User directive runs as the root user. Are there any security implications of this? Should I not run untrusted code as a service w/o using User directive or does systemd have some sort of permission sandboxing even though the processes run as root?

Top comments (1)

Collapse
 
fcfn profile image
Peter Timoshevsky

I guess no security measures are taken by default, as there is a bunch of things you can do to sandbox services the way you want.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more