ralphlange / procServ

Wrapper to start arbitrary interactive commands in the background, with telnet or Unix domain socket access to stdin/stdout
GNU General Public License v3.0
23 stars 23 forks source link

add options to set user id and group id of spawned commands #17

Open dirk-zimoch opened 6 years ago

dirk-zimoch commented 6 years ago

Options -u / --uid and -g / --gid to set user and group id of the spawned command would be nice. Should accept user/group names as well as numeric ids.

bfrk commented 4 years ago

Feature creep, if you ask me. Why not run procServ itself as user ioc like this: runuser -u ioc -- procServ ...?

anjohnson commented 4 years ago

The difference is that procServ itself is then running as that user, so the IOC itself or another process started by it could interfere with procServ. You could run just the ioc under runuser though with procServ ... -- runuser -u ioc ...

bfrk commented 4 years ago

True, it's not exactly the same thing. OTOH, running procServ as root isn't ideal either. And I like it when the log files and the communication sockets belong to the same user that runs the IOC. YMMV.