Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th August 2006, 10:43 AM
kamran_pro Offline
Registered User
 
Join Date: Aug 2006
Age: 24
Posts: 6
chmod --recursive

I have a huge directory in which I'd like to recursively chmod. The problem is that I want 755 for all directories and 644 for all the files. The:
chmod --recursive 755 *
command gives everything 755 permission.

Can anyone please help me in accomplishing this purpose?
__________________
www.ultimation.tk
Reply With Quote
  #2  
Old 17th August 2006, 10:47 AM
ccrvic Offline
Registered User
 
Join Date: Apr 2006
Posts: 1,092
Quote:
Originally Posted by kamran_pro
The problem is that I want 755 for all directories and 644 for all the files.
man find. Pay attention to the "type" and "exec" bits.

Vic.
Reply With Quote
  #3  
Old 17th August 2006, 11:05 AM
kamran_pro Offline
Registered User
 
Join Date: Aug 2006
Age: 24
Posts: 6
Quote:
Originally Posted by ccrvic
man find. Pay attention to the "type" and "exec" bits.

Vic.
Thanks for the quick reply . These commands did the job perfectly:

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
__________________
www.ultimation.tk
Reply With Quote
  #4  
Old 17th August 2006, 12:56 PM
Shobhit_Jain
Guest
 
Posts: n/a
try "chmod -R 755 <dir>"
Reply With Quote
  #5  
Old 17th August 2006, 12:59 PM
kamran_pro Offline
Registered User
 
Join Date: Aug 2006
Age: 24
Posts: 6
Err.. I don't mean to be offensive but I think you didn't understand my purpose.

It's fulfilled anyway, so nm.
__________________
www.ultimation.tk
Reply With Quote
  #6  
Old 18th August 2006, 04:10 AM
Shobhit_Jain
Guest
 
Posts: n/a
oops... sorry... previously, i did not read the problem properly,

for your prob, find would b d best option...
Reply With Quote
Reply

Tags
chmod, recursive

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recursive FTP DanSandberg Servers & Networking 8 17th October 2008 06:10 PM
PHP and recursive row creation cypher543 Programming & Packaging 1 21st December 2006 06:20 AM
PHP5 and mkdir() recursive Bl4deRunner Using Fedora 0 30th June 2006 09:59 PM
RPM recursive dependencies!!!! nemesys Using Fedora 6 15th December 2005 03:58 PM


Current GMT-time: 03:34 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat