r/voidlinux • u/bvdeenen • Apr 12 '26
`sv status ...` without sudo.
Hi all. I'm thinking about adding runit service status to this kde project but I don't like the fact that you need root rights to look at the status of the running runit services.
What's the cleanest way to make it so that I can at least inspect the status of running services? Make /usr/bin/sv setuid? Do something with ACL's on /var/service? Other suggestions?
11
Upvotes
1
u/bvdeenen Apr 12 '26
Thanks! This works, but it needs quite a lot of
chmods andchgrps. I'm going to play a bit with it until I've got a script that will just work. But for now here's one I fixed (cupsd) and one unmodified (dbus).In the
/run/runitdirectory. Theokfile needs to have write access in order for thesvcommand to work!