4👍
✅
./manage.py runfcgi help
says:
umask=UMASK umask to use when daemonizing (default 022).
So you just need to run:
./manage.py runfcgi socket=$FCGISOCKET umask=007
and a socket with mode 0770 will be created. Please note that umask is being set only when daemonize is set to true (which is default).
1👍
can’t find a way to do this with fastcgi, added a os.fchmod at the end of my settings.py and that seems to make it work. still its a horrible hack and they should allow you to set it when invoking the service.
- [Django]-Django return user model id with L
- [Django]-'ascii' codec can't decode byte 0xe2 in position 5367: ordinal not in range(128)
- [Django]-How to use Django QuerySet.union() in ModelAdmin.formfield_for_manytomany()?
- [Django]-Django – Prevent automatic related table fetch
1👍
umask=
doesn’t work when running with daemonize=false
. In this case, it’ll just use your current os umask, so run umask 0007
before your script.
- [Django]-Django "Lock wait timeout exceeded; try restarting transaction" while saving/updating a model
- [Django]-Django admin custom commands – passing a list of strings into args
- [Django]-Getting error "SuspiciousFileOperation" after Django Version Update Django: 3.1.9 from Django: 3.1.8
- [Django]-How to make django register users with emails instead of username
Source:stackexchange.com