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 6965925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:07:29+00:00 2026-05-27T16:07:29+00:00

My scripts (php, python, etc.) and the scripts of other users on my Linux

  • 0

My scripts (php, python, etc.) and the scripts of other users on my Linux system are executed by the apache user aka “www-data”. Please correct me if I’m wrong, but this might lead to several awkward situations:

  1. I’m able to read the source code of other users’ scripts by using a script. I might find hardcoded database passwords.
  2. Files written by scripts and uploads are owned by www-data and might be unreadable or undeleteable by the script owner.
  3. Users will want their upload-folders to be writeable by www-data. Using a script I can now write into other users upload directories.
  4. Users frustrated with these permission problems will start to set file and directory permissions to 777 (just take a look at the WordPress Support Forum…).
  5. One single exploitable script is enough to endanger all the other users. OS file permission security won’t help much to contain the damage.

So how do people nowadays deal with this? What’s a reasonable (architecturally correct?) approach to support several web-frameworks on a shared system without weakening traditional file permission based security? Is using fastCGI still the way to go? How do contemporary interfaces (wsgi) and performance strategies fit in?

Thanks for any hints!

  • 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-27T16:07:29+00:00Added an answer on May 27, 2026 at 4:07 pm

    All your point are valid.
    Points 1, 3 and 5 are solved by setting the open_basedir directive in your Apache config.
    2 and 4 are truly annoying, but files uploaded by an web-application is also (hopefully) removable with the same application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently in my PHP scripts, I redirect the user to a custom 404 not
I just setup PortablePython on my system, so I can run python scripts from
I have been trying to get slimv (http://www.vim.org/scripts/script.php?script_id=2531) working for a while now, but
I want to run php or python scripts from eclipse that will create folders
what is the mod_python equivalent to the php exec command? $cmd = '/var/www/scripts/test.py' +
I have a PHP script which executes a shell command: $handle = popen('python last',
I'm working on a PHP script that runs a Python script on the server.
Hey gang, I'm trying to convert a legacy php script over to python and
Our PHP scripts create dynamic folders and files and we are having a permission
I know PHP scripts don't actually compile until they are run. However, say 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.