I want a folder to have 777 permission and every time a new file or folder gets created inside that should have the same user and group with 777 permission.
I tried the following but it does not get executing permission for the new files inside the folders.
sudo chmod -R 2777 new_folder
ll
drwxrwsrwx 2 test test 4096 Oct 11 08:30 new_folder
cd new_folder
touch new_file
ll new_file
-rw-rw-r-- 1 test test 0 Oct 11 08:31 new_file
I want it to have -rwxrwxrwx whenever i create new folder or files inside that. How can this be done?