Well except you need root authority to create user lightdm and the directory in 
/var/run.

Bruce
On Apr 19, 2013, at 12:23 PM, Manfred Lotz wrote:

> Hi Rony,
> 
> On Fri, 19 Apr 2013 17:50:51 +0200
> "Rony G. Flatscher" <rony.flatsc...@wu.ac.at> 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
> 
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to