Welcome to WebmasterWorld Guest from 54.162.239.134

Forum Moderators: bakedjake

Message Too Old, No Replies

How would I recursively change files with 777 permissions to 755?

     
4:23 pm on Nov 30, 2006 (gmt 0)

10+ Year Member



Basically, I have a number of files in /home/virtual/mysite.com/var/www/html/catalog that I need to change from 777 to 755. The key is that I only want to change files that have 777 permissions. Files with say 444 I don't want change to 755.

Is there an easy way to do this?

2:26 am on Dec 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



find /home/virtual/mysite.com/var/www/html/catalog -perm 777 -exec chmod 755 {} \; -print
 

Featured Threads

Hot Threads This Week

Hot Threads This Month