Created Folders Do Not Inherit Permissions From Parent Folder
I've got a subfolder, /uploads, in User1's directory that is meant to be shared with User2. I have set the permissions on /uploads to 775. When thumbnails need to be generated for the web page, one of the users generates a folder called /uploads/thumbnails. Which user generates the folder changes from time to time, it can be either User1 or User2.
Regardless of which user creates the folder, both users need to be able to write new thumbnail images into this folder.
The problem is: No matter what I do, this folder is being generated with 755 permissions.
I've got it set up such that the folder belongs to the group that both User1 and User2 share at the time of generation. I've also followed this forum post: [url=http://www.linuxquestions.org/questions/linux-desktop-74/applying-default-permissions-for-newly-created-files-within-a-specific-folder-605129/]Applying default permissions for newly created files within a specific folder . According to everything I've read this should have enabled ACL (which appears to be the case. When I run ls -l I see the permissions ending in a +, indicating that ACL is being applied to the items) and changed the default policy to be 775.
As an interesting side note, when I create a folder with user1 or user2 using the file manager in the CPanel interface, it also comes out 755 instead of what the subfolders and files in the /uploads folder should be, 775. BUT, when I create a new file or folder using the command line, it has the proper 775 permissions applied to it.
I'm sure there's a simple setting somewhere I'm missing, but after hours of reading and searching, I have not been able to find it.
Any help you guys can offer on this issue is greatly appreciated.
Thank you.
Please sign in to leave a comment.
Comments
0 comments