Every time I save a file from a web browser or copy files from our local server to my machine, the default permission "for everyone" is set to none
.
I'm a web developer. Files that are non-readable will not be displayed when accessed from an Apache server.
That means I always have to go through every file manually and change their permissions.
Is there a way to tell OSX that all files should be readable?
Best Answer
From the terminal you can use the
chmod
command to change permissions. In this case the command would bechmod a+r *
. This would change all files in a folder. If you want to do this from the Finder, you would have to create a service. You could then select a group of files and change all of them at once. The instructions are given below.text
inany application
" to "Service receives selectedfiles or folders
inFinder
".Replace the code
with
The service should have been saved in the
~/Library/Services
folder under the nameReadable by All.workflow
. If not, move it there.Now when you highlight one or more files using the Finder application, you can right click and select "Readable by All" to change the permissions.