Added permissions for files and directories