Welcome to WebmasterWorld Guest from 23.22.200.6

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)

Preferred Member

10+ Year Member

joined:June 24, 2005
posts:446
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members