I need folder for the visitors to upload certain files.
So, I did
sudo chown nobody:nogroup UploadFolder
However subfolders and files, created on the go by script for visitors inside UploadFolder, didn’t get nobody:nogroup permissions. Still www-data:www-data
Because of that files, like video for ex., can’t be uploaded by visitors.
What should be done, so subfolder, that creates by script inside nobody:nogroup UploadFolder, also would be nobody:nogroup ?