[Nix-dev] Setuid wrapper for bash script

Eelco Dolstra eelco.dolstra at logicblox.com
Wed Sep 14 19:46:55 CEST 2016


Hi,

On 09/14/2016 07:29 PM, Daniel Hlynskyi wrote:

> Hi. I want to allow some user to restart systemd service. I found that setuid
> wrappers should be used for this task. Here is what I've written:
...
> What am I doing wrong?

You probably need to use "bash -p", otherwise bash will drop its root privileges
on startup.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list