Batch Edit File Privileges

Joined
Jul 10, 2008
Messages
33
Reaction score
0
Points
6
I am trying to edit the privileges on a bunch of files I have created (.xls) It seems that sometimes these privileges will allow me to edit/open docs from a remote pc on my network and sometimes it won't. I am not sure why the privileges are different on some. But I would like to batch edit all of them to allow access (read/write) from any pc/mac on my network. Is this possible?
I have about 300 files and do not want to do it one by one.

Thanks,
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
are they all in the same directory?
 
OP
C
Joined
Jul 10, 2008
Messages
33
Reaction score
0
Points
6
Yes, If I highlight them and go to "get info". It says under Sharing and Permissions - "You have Mixed Access". But will not give me the option to change it
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
if you drop to a terminal window you can do a


chmod 755 /path/to/directory/*.xls

755 is user read, write, execute. group, read, execute other, read execute
 
OP
C
Joined
Jul 10, 2008
Messages
33
Reaction score
0
Points
6
It keeps giving me "No such file or directory"
My path is "chmod 755 /Users/chad/Documents/Work/Missouri/Excel Site Surveys/Uploaded/*.xls"

Any ideas what I am doing wrong?

Thanks for the help
 
Joined
Aug 5, 2008
Messages
346
Reaction score
14
Points
18
Location
Central New York
You can't use spaces in a file path unless you put quotes around the whole path name or escape the spaces (e.g Excel\ Site\ Surveys).

An easier way would be: type cd<space> in the terminal; drag the folder in question to the terminal window; press return - this will get you to the correct directory; then type chmod 755 *.xls and return; done.
 
OP
C
Joined
Jul 10, 2008
Messages
33
Reaction score
0
Points
6
I finally got back to this and can now get to the file. (Thanks to Ron4Mac). But it finds the first file in the directory and says "Permission Denied". I am logged in as an admin. Any ideas now?
Again Thanks,
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
might not have permissions at this point. do a

ls -l /Users/chad/Documents/Work/Missouri/"Excel Site Surveys"/Uploaded/*.xls
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
well, that will show permissions. if you don't have w, you're not going to be able to change them without doing a sudo :) or.. a chown
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top