On Sun, May 11, 2014 at 09:56:17AM +0200, Adrien Clerc wrote: > In systemd, the ExecStartPre directive can be helpful. But the > documentation doesn't say if it is executed as the user defined in the > User directive, or as root. I guess the latter is done, but I'm too lazy > right now to test it :)
>From the systemd.service[0] manual page (search for "User="): PermissionsStartOnly= Takes a boolean argument. If true, the permission-related execution options, as configured with User= and similar options (see systemd.exec(5) for more information), are only applied to the process started with ExecStart=, and not to the various other ExecStartPre=, ExecStartPost=, ExecReload=, ExecStop=, and ExecStopPost= commands. If false, the setting is applied to all configured commands the same way. Defaults to false. [0]: http://www.freedesktop.org/software/systemd/man/systemd.service.html -- http://www.cafepress.com/trunktees -- geeky funny T-shirts http://gtdfh.branchable.com/ -- GTD for hackers -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140511080509.ga32...@havelock.liw.fi