Re: [Burp-users] pid file when server is run as user under Ubuntu
Brought to you by:
grke
|
From: Ziirish <zi...@zi...> - 2017-03-06 14:42:42
|
Hello, Thanks for this nice trick. It definitely deserves a wiki entry or something. I'll even add it in my repository README file. * On Monday, March 06, 2017 at 05:29 PM +0300, Marat Khalili <mk...@rq...> wrote: > This is more an answer than a question, but I'd of course appreciate > feedback. > > I installed burp-server from the great ziirish repository on Ubuntu > 16.04 and changed user and group parameters in burp-server.conf to > non-root user "burp". Then it failed to start due to not having enough > access rights to create /var/run/burp-server.pid . Providing necessary > access rights is easy but only works until next reboot, since in Ubuntu > /var/run is symlinked to /run which is located on tmpfs. Changing > pidfile location to different place like user's home directory is > possible but ugly. > > Turns out there's now a canonical way to create temporary files with > necessary access rights in Ubuntu. Just put following contents to > /etc/tmpfiles.d/burp-server.conf: > > > #Type Path Mode UID GID Age Argument > > f /var/run/burp-server.pid - burp burp - - > Then it will be created automagically on reboot belonging to burp. > > Hope this helps someone, possibly even package author :) > |