Changing the umask when creating the file's directory
changing umask to 0