0

I'm giving full permission in a folder using chmod:

chmod 777 /srv/folder

Inside this folder many other folders and files will be created. My problem is that the full permission does no apply to these new folders and files. When I run the chmod command everything works OK, but after, when someone create a new file or folder this new item throws access denied error.

How can I set the permission in a way that everyone can do anything inside this folder, without having to update the permission?

Thanks in advance for any help.

  • 1
    If the users are all in the same group, you can use 'chmod g+s /path/to/directory' to set the new files and folders created to belong to the same group as the parent. – user508889 May 19 '16 at 20:53
  • 1
    Possible duplicate of Shared folders for all users – muru May 19 '16 at 22:43
1

Try this:

chmod g+s /srv/folder

This will sticky the group permission of any new files to that of the parent - if I understand correctly what you want to do.

  • not a problem, happy coding. – Matt Clark May 24 '16 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.