LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to run daemon process being a normal user [not root user]. (http://www.linuxquestions.org/questions/linux-software-2/how-to-run-daemon-process-being-a-normal-user-%5Bnot-root-user%5D-764524/)

narendra1310 10-26-2009 08:04 AM

How to run daemon process being a normal user [not root user].
 
I want to run a http daemon/service being a "test" user through "chroot" command as follows. so that "mychroot_dir" becomes as "/".

$/usr/sbin/chroot mychroot_dir /apache/bin/httpd -k start

/usr/sbin/chroot: cannot change root directory to mychroot_dir: Operation not permitted

Here i have 3 questions to ask:

1. Under which user i have to run "/sbin/runuser".

2. weather chroot command will not work under a normal user.

3. Is there any alternate solution for the above requirement.

Thanks in advance

narendra1310 10-26-2009 09:48 AM

Quote:

Originally Posted by narendra1310 (Post 3732811)
I want to run a http daemon/service being a "test" user through "chroot" command as follows. so that "mychroot_dir" becomes as "/".

$/usr/sbin/chroot mychroot_dir /apache/bin/httpd -k start

/usr/sbin/chroot: cannot change root directory to mychroot_dir: Operation not permitted

Here i have 3 questions to ask:

1. Under which user i have to run "/sbin/runuser".

2. weather chroot command will not work under a normal user.

3. Is there any alternate solution for the above requirement.

Thanks in advance

ssssssss


All times are GMT -5. The time now is 07:52 AM.