Re: [Oorexx-devel] Any progress on non-root perms an ooRexx 4.x?
Hi David, On Thu, 18 Apr 2013 15:46:44 -0500 David Ashley w.david.ash...@gmail.com wrote: Sorry, but root permission is required for running the rexxapi program on a *nix box. This is because it opens a local port for client connections and only programs that run with root permissions can open a server port on *nix systems. IMHO, this is only half true. If you want to open a server port which is a privileged port (port number 1024) then the program must be run by a superuser. If a program binds to a non privileged port then the program could be run by a normal 'John Doe' user. -- 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
Re: [Oorexx-devel] Any progress on non-root perms an ooRexx 4.x?
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 -- 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
Re: [Oorexx-devel] Any progress on non-root perms an ooRexx 4.x?
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
Re: [Oorexx-devel] Any progress on non-root perms an ooRexx 4.x?
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
Re: [Oorexx-devel] Any progress on non-root perms an ooRexx 4.x?
On Fri, 19 Apr 2013 12:34:31 -0700 CVBruce cvbr...@gmail.com wrote: Well except you need root authority to create user lightdm and the directory in /var/run. Exactly. But this happens during installation of a package (running yum, apt-get or whatever installation program...) which always require root authority. -- 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
Re: [Oorexx-devel] Any progress on non-root perms an ooRexx 4.x?
On Thu, Apr 18, 2013 at 2:15 PM, Michael Lueck mlu...@lueckdatasystems.comwrote: Without root/sudo perms to the share hosting server, I doubt I can accomplish this. Am I correct? Disappointed indeed... :-( Michael, If I were you, I'd do this: make clean Then locate the file: rexxapi\server\platform\unix\APIService.cpp Around line 70 is this code: #define RUN_AS_DAEMON #ifdef RUN_AS_DAEMON #define OOREXX_PIDFILE /var/run/ooRexx.pid bool run_as_daemon = true; #else #define OOREXX_PIDFILE /tmp/ooRexx.pid bool run_as_daemon = false; #endif Change the code to this: *#undef* RUN_AS_DAEMON #ifdef RUN_AS_DAEMON #define OOREXX_PIDFILE /var/run/ooRexx.pid bool run_as_daemon = true; #else #define OOREXX_PIDFILE /*your_home_directory*/ooRexx.pid bool run_as_daemon = *true*; #endif Then rebuild and install to a directory you have write and execute privileges. Without testing, I believe that should work. If you have problems, you're on your own. -- Mark Miesfeld -- 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