From: Manfred L. <man...@we...> - 2013-04-19 19:23:44
|
Hi Rony, On Fri, 19 Apr 2013 17:50:51 +0200 "Rony G. Flatscher" <Ron...@wu...> wrote: > On 19.04.2013 00:32, René Jansen wrote: > > Any port above 1024 can be used (opened, written to) by non-root > > users. The PID file location is the problem. > How do other programs on Unix/Linux solve this problem (the PID > file), if they are started via USB sticks and the like without root > permissions? > > ---rony > I have an example on my linux box where a program isn't root and starts a server. It works like this: lightdm is a display manager. When the lightdm package gets installed then a directory /var/run/lightdm will be created like this: drwxrwxr-x 5 lightdm lightdm 100 Apr 12 13:40 lightdm/ Now the lightdm server could run as user lightdm and has authority to put its pid file below /var/run/lightdm/ -- Manfred |