LinuxQuestions.org
Help answer threads with 0 replies.
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, 09: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, 10: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 08:02 PM
Grant normal user to run certain script with root access cdestiny Linux - Server 4 09-30-2008 03:42 AM
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 03:21 PM
How to run startup script/daemon as a user other than root? Akhran Debian 2 02-04-2006 02:20 AM
Can you connect to internet as normal user without run pppd as root ? nasty_daemon Linux - Networking 2 09-13-2005 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration