LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-26-2009, 08:04 AM   #1
narendra1310
Member
 
Registered: May 2008
Posts: 41

Rep: Reputation: 15
Lightbulb 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
 
Old 10-26-2009, 09:48 AM   #2
narendra1310
Member
 
Registered: May 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by narendra1310 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I run jack well as normal user instead of root? NO /etc/security/limits.conf! el_b Linux - Software 4 09-24-2009 07:02 PM
Grant normal user to run certain script with root access cdestiny Linux - Server 4 09-30-2008 02:42 AM
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 02:21 PM
How to run startup script/daemon as a user other than root? Akhran Debian 2 02-04-2006 01:20 AM
Can you connect to internet as normal user without run pppd as root ? nasty_daemon Linux - Networking 2 09-13-2005 01:43 AM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration