Recursively chmod only directories or files

Ever come across the problem of needing to chmod a directory and its many, many, sub-directories, but you don’t want to touch any of the files? Maybe it’s the exact opposite, or you need to recursively change the permissions on only files with a specific extension. Well I had a similar problem with one of the RainSoft Letters server backups.

Luckily, I came across a post on movabletripe that dealt with the problem, as well as having some additional find snippets in the comments. The original article is here: Recursively chmod directories only.

find . -type d -exec chmod 755 {} \;

  • This will “find” all directories, starting at “.“, and chmod them to 755.

find . -type f -exec chmod 644 {} \;

  • This snippet does the opposite and finds only files. The difference (beside the file permissions) is the “-type f“, “f” specifies files and “d” directories.

If you check the comments, you’ll find a few additional snippets:

find . -type f -name '*.htm*' -exec chmod 644 {} \;

  • This lets you “find” files (“-type f“) with a specific extension (“-name '*.htm*'“) and chmod them with your desired permission (“-exec chmod 644 {}“).

chmod -R o+rX

  • This snippet will recursively chmod “other” (“o“) permissions with read/eXecutable (“+rX“), and the capital X ensures that directories and files set (user/group permissions) to executable will be properly modified, while ignoring regular (non-executable) files.

July 22, 2008

RainSoft of Ottawa joins RainSoft Letters with two posts

The RainSoft Letters Network welcomes our newest dealer, RainSoft of Ottawa. RainSoft of Ottawa joins us with two letters from satisfied customers.


“I wanted to tell you how happy we are with the new RainSoft Water Softener.”
Written by Judy Riopelle


“We are so thrilled, so pleased with our (RainSoft) system…”
Written by Rebecca Cragg


July 21, 2008

RainSoft Letters new customer posts (Thu, July 17th)

July 18, 2008

RainSoft letters updates from Wednesday, July 16th

Updates for RainSoft Letters.


“Thank you!”
Written by Alicia Haney (Brunswick, GA)
Georgia, A and B Marketing


“We were very pleased…”
Written by Rene and Julia Avalos
California, RainSoft Of The Southland


“I can actually drink the water now.”
Written by Jorge Ramirez
Florida, Discovery Marketing and Distributing


“I like the fact that I know what I am drinking…”
Written by Jonathan H and Erin M
Indiana, RainSoft Of Valparaiso


“I would recommend others to buy RainSoft.”
Written by Marlene Honaker
Iowa, RainSoft Of NE Iowa


“Our laundry is brighter, cleaner and softer.”
Written by Ethel W
Minnesota, Lake Country RainSoft


“I highly recommend it.”
Written by Bob and Julie (St Charles, MO)
Missouri, Tri State Water Treatment


“Ken did a great job..”
Written by Jackie B
Ohio, Miami Valley Water RainSoft


“Since having our RainSoft system installed, our water has been wonderful!”
Written by Mark Clancy and Tanya Candler (London, ON)
Ontario, RainSoft Of London


“… laundry requires much less detergent …”
Written by Jamie Berube
Ontario, Superior Water Conditioners


“Loving our new RainSoft System.”
Written by Joe and Lisa
Pennsylvania, Castle Water


“The effects of the system are almost immediate…”
Written by Tim and Alisa
Tennessee, Environmental Water Systems


“RainSoft is great!”
Written by Michelle Ramos
Washington, Clean Water Specialists


“We are looking forward to better tasting water…”
Written by Terry Patterson
Alabama, RainSoft Of Birmingham


“The water in our new home tasted terrible…”
Written by E. Banks
Florida, A and B Marketing


July 17, 2008

Customer letter from Thursday, July 10th

July 16, 2008

New customer letter posts from July 8th

July 10, 2008

Letter summary for Monday, July 7, 2008

July 8, 2008

Updates for July 3rd, 2008

July 3, 2008

RainSoft Letters network adds New York site

RainSoft Letters network adds a new site for RainSoft customers in New York. You can read what New York RainSoft customers are saying about their local dealers by visiting Letters to RainSoft of New York. This is a state specific site, intended to make finding feedback on your state’s local RainSoft dealers easier.

Our current leading RainSoft dealer in New York is Pure Water Consultants.

June 4, 2008

RainSoft Letters small update from the weekend

June 3, 2008

Next Posts Previous Posts


Top Posts

Recent Posts

Archives

Feeds

Category Cloud

A and B Marketing Administration Atlantic Water Products Clean Water Specialists Components Delaware Discovery Marketing and Distributing Eastern Shore Water Georgia Joomla Letters Linux Maryland Merequest Marketing and Distributing Miami Valley Water RainSoft New Jersey New York Pure Water Consultants RainSoft RainSoft Of Birmingham RainSoft Of Indianapolis RainSoft Of London RainSoft Of NE Iowa RainSoft Of Ottawa RainSoft Of The Southland Superior Water Conditioners Tri State Water Tri State Water Treatment Uncategorized

RainSoft Photos on Flickr

RainSoft Phoenix Luncheon

RainSoft Seminar Break

RainSoft Seminar Break

More Photos

Blogroll

RainSoft

RainSoft Dealers

RSS Propeller Tag: rainsoft

RSS RainSoft Letters Feed

Pages

 

November 2009
M T W T F S S
« Feb    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Meta