Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8151671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:27:37+00:00 2026-06-06T15:27:37+00:00

I have XAMP installed on my mac and I tried running the command –

  • 0

I have XAMP installed on my mac and I tried running the command –
ps axo user,group,comm | grep httpd to know what user apache is running as.
I am getting multiple results one for root and others as nobody. So what is apache running as? A root or nobody and why do I get both root and nobody? Is it because httpd started as a root and then became nobody?

The result of ps axo user,group,comm | grep httpd I get is –

root        20 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd
nobody      -1 /Applications/XAMPP/xamppfiles/bin/httpd

Secondly, when I execute the following script –
echo shell_exec('whoami'); (from https://stackoverflow.com/questions/2509334/finding-out-what-user-apache-is-running-as)
I just get the result as – nobody

The reason I want to know the user is because the php engine is actually able to execute a php file(mysql_details.php) that’s outside the web server root directory. And this mysql_details.php has following permissions – rwxr--r-- i.e. just read permission for other and group. So if apache user is nobody then how can it execute mysql_details.php.

Thanks,
Prat.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:27:40+00:00Added an answer on June 6, 2026 at 3:27 pm

    The main Apache process is run as root- the other processes are run as nobody. The only processes that handle requests are those that are run as nobody, so that if anyone tries to access a file that nobody can’t access, they’ll get an error (whereas root would be able to access the file).

    If you need to execute the file, you can do a few things:

    1. Have nobody own the file. This will give nobody full read/write/execute access to the file, while preventing other users from writing or executing the file.
    2. Add nobody to a group, and give that group execute access on the file. Anyone who is in the group would be able to execute the file, but only the owner would be able to write to it (which would not be nobody).
    3. Allow anyone to execute the file. This is probably not a good idea, as any user would be able to execute the contents at varying permission levels. It’d probably be best to use one of the above two.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have XAMP 1.6.8 and IIS 5.0 installed on my PC(Windows XP SP3). I'm
I have 2 questions. I am currently running XAMP and I want to prohibit
Have someone tried out DeCAL in Delphi 2009? I'm thinking about upgrading from 2007,
Have you ever tried learning a language while on a project? I have, and
I currently have a user control that contains items that have a certain X,
At the office, we have 2 MBPs with Mac OS X & 1 laptop
I have written a app in PHP on my localhost server using XAMP, which
i have two problems with xamp first problem My code if($_REQUEST['foo']){ echo 'bar'; }
I have written some SAS code that calls R via the x command (I
I have a Grid and I know the X-value and Y-Value of where I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.