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 Answers1

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.

Matt Clark
  • 182
  • 13