homepage Welcome to WebmasterWorld Guest from 54.227.11.45
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

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




msg:3173679
 4:23 pm on Nov 30, 2006 (gmt 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?

 

mcavic




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved