Permissions – How to Give Read Write Permission to a Folder and Its Subfolders


I have changed ownership of my localhost file on /var/www/ and its sub folders and given it permission 777. However, whenever I add a new folder in it the new folder does not automatically get that permission. How can I give a folder 777 permission forever so that if I add a new folder or file it gets the same permission?

Best Answer

Permissions for newly created files are set by umask