Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 23.02
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.4): PHP 7.4.3
The issue you are facing:
My www-data default user creates file permissions as below, when uploading them via web client.
drwxr-sr-x 2 www-data sftp 4,0K lut 21 21:01 TestDir
-rw-r--r-- 1 www-data sftp 2,9M lut 9 09:00 TestFile
Probably I have mess with permissions. Where should I head to change them?
I don’t want to run chmod / chgrp each time I upload any files
What I’d like to have after upload to my nextcloud server is below:
drwxrwx--- 2 www-data www-data 4,0K lut 21 21:01 TestDir
-rwxrwx--- 1 www-data www-data 2,9M lut 9 09:00 TestFile
Any link to manual for that?
I’m googling “how to change default file permissions for www-data nextcloud user” and I keep getting answers around chmod / chgrp / chown. So surely I ask wrong question