Linux Security: Managing File Attributes and Permissions
Reset Permissions on /opt/myapp directory
To be able to allow access to the directory `/opt/myapp`, which you can provide specific permissions to the directory. This will allow to be read by all of the users other than the owner.
sudo chmod 755 /opt/myapp
This will also dothe same thing, but it is less secure.
sudo chmod 777 /opt/myapp
Permissions on Files and Folders Within /opt/myapp
The following will allow read and write (not execute) permissions to to all files and folders within the directory ‘/opt/myapp’ (including files within subfolders recrusively)
sudo chmod 666 -R /opt/myapp/*