Does it exist?
I create a folder with, let's say, all permissions set, and some services (i.e. Apache web server) create subfolders and put files there (uploaded media files from website users). Such subfolders have permissions set so that only www-data (Apache user) can write to them.
My problem arises because I have a script which has to be able to create subfolders and files, the same way as Apache does. But when it tries to write a new file to an existing folder created by Apache, it can't because of the permissions.
Is there any way in Linux (Ubuntu distro) to set so that a newly created subfolder inherits same permissions as parent folder?
I have been reading a while about guid, sticky bits and so, but I am not very savvy in sysadmin, and, in the middle of a rush of work, this whole thing overwhelmes me...
I am using python and mod-wsgi, if this information is useful in any way.
Thanks!
0700
, other users won't be able to get at anything below it, regardless of their permissions.