Giter Site home page Giter Site logo

Comments (3)

maxexcloo avatar maxexcloo commented on June 23, 2024

Any reason for running php under the www-data user?
I'm changing permissions as many scripts and webapps like to write into the web folder, I agree with your assessment but don't have many ideas on how to solve this...

from docker.

dadittoz avatar dadittoz commented on June 23, 2024

I'd suggest the following way:

  1. Run nginx and php-fpm under www-data user by default. This is a standard Debian behavior, no real need to change it.
  2. If a user wants an insecure script-writable-readable environment for development and testing, he supplies an environment option such as "WEB_WRITABLE=1". Init script detects it and modifies config files or changes permissions accordingly.

I believe silently changing permissions or an owner on a mountable volume is not a good practice. Different web apps may have their own permission requirements.

Your repository is popular. People may use it in production. Either a warning about insecure permissions should be made in a readme or make it secure by default and have a development option. With power comes responsibility.

from docker.

maxexcloo avatar maxexcloo commented on June 23, 2024

Duly noted, I will take steps to rectify this, I do believe in best
practices and your advice is solid.
If you have any pull requests for changes they're very welcome as I am
unfortunately rather busy with university and it may take me some time to
examine my repository and make the changes needed (I want to do a full
overview of all my packages and clean them up if i can).

Thank you again, Max.

On Wed, Mar 25, 2015 at 12:37 AM, dadittoz [email protected] wrote:

I'd suggest the following way:

  1. Run nginx and php-fpm under www-data user by default. This is a
    standard Debian behavior, no real need to change it.
  2. If a user wants an insecure script-writable-readable environment for
    development and testing, he supplies an environment option such as
    "WEB_WRITABLE=1". Init script detects it and modifies config files or
    changes permissions accordingly.

I believe silently changing permissions or an owner on a mountable volume
is not a good practice. Different web apps may have their own permission
requirements.

Your repository is popular. People may use it in production. Either a
warning about insecure permissions should be made in a readme or make it
secure by default and have a development option. With power comes
responsibility.

β€”
Reply to this email directly or view it on GitHub
#15 (comment).

from docker.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.