Steps to reproduce:
{{{
django-admin startproject bugreport
}}}
Append to settings.py
{{{
STATIC_ROOT = BASE_DIR / 'static'
FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o750
}}}
Call
{{{
python manage.py collectstatic
}}}
Intermediate folders such as static/admin will have permissions 777.
Note: python version at least 3.7 is required!
Could have security implications when running on a production server.
--
Ticket URL: <https://code.djangoproject.com/ticket/31921>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 3.1 => 2.2
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
Comment:
Thanks.
Security issues should be reported privately via
secu...@djangoproject.com
--
Ticket URL: <https://code.djangoproject.com/ticket/31921#comment:1>
Comment (by Claude Paroz):
It is not true that intermediate folders will have permissions `777`. The
current user umask will still apply, so on my system, intermediate
directories are created with `755` permissions.
--
Ticket URL: <https://code.djangoproject.com/ticket/31921#comment:2>
* owner: nobody => felixxm
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31921#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
Fixed in 8d7271578d7b153435b40fe40236ebec43cbf1b9
--
Ticket URL: <https://code.djangoproject.com/ticket/31921#comment:4>