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

  • Home
  • SEARCH
  • 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 6187469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:03:50+00:00 2026-05-24T02:03:50+00:00

could any one explain how permission levels work when a Client connects to a

  • 0

could any one explain how permission levels work when a Client connects to a webpage of my server?

Specifically:

I create a folder in the apache root directory that is owned by Root, So I can read write and execute with a root user.

When a webclient connects to this server, what is the user level of this webclient? Is it Nobody? Basically what im getting at is I want to create say a cron folder in my apache root, but I dont want web clients getting into it.

Aside the fact that I should “stick it outside of the webroot” – Is this possible to create a folder that is not browseable by a user through a web browser through file permissions alone?

Another thing I dont get… When a php script is running inside apache.. what user is running that script? – I commonly see allot of talk about chmod’ing a php file to 664 or something along those lines for security… but surely… you want that script to run anyway – or else you wouldnt of made it otherwise.

I know this is kind of 2 questions… my understanding of permissions from a web point of view is kind of confused… I get it from a Linux standpoint, but as soon as it goes web.. I get confused.

Maybe just an overview of permission with regards to apache and scripts… I dont need a deep understanding – just enough to be able to do things the safe correct way. Maybe an example of why you would change a scripts permissions or owner in the apache root?

Cheers all you super smart guys!

  • 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-05-24T02:03:51+00:00Added an answer on May 24, 2026 at 2:03 am

    Generally speaking, Apache (which is the httpd server which executes PHP, when answering HTTP requests) runs with a user which doesn’t have much privileges.

    This user is generally called either www-data or nobody, depending on your Linux distribution.

    If you want a directory that cannot be accessed by that user, and can be accessed by root, a possibility would be to make sure that :

    • This directory belongs to root
    • Its rights are rwx------ (i.e. only the user it belongs too has rights)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.