View Single Post
Old 09-26-2002, 07:36 AM  
gallerypost
Confirmed User
 
Join Date: Nov 2001
Posts: 711
Quote:
Originally posted by HQ
Why does this command NOT work?

chmod -R 755 *.cgi
chmod: getting attributes of `*.cgi': No such file or directory

I want to recursively change every .cgi file to 755. Is there no way to do a wildcard and recurse at the same time with chmod?
bah... well the thing is that when you give it *.cgi it'll search only for *.cgi files for the chmod...
directories aren't *.cgi so the -R won't help, it won't get into the directories....

that's why it didn't work, but i don't know what should work, i almost have no clue about *nix .... so if you find the answer... please share it with us ;)
gallerypost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote