• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

Posts tagged chmodding

BASH> Recursively set file/directory permissions

Jan19
2012
Written by Scott Rowley

Move to the directory you want to start chmodding files in and run the following:

Recursively set FILE permissions.

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

Recursively set DIRECTORY permissions.

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

*Note, obviously you can change the chmod number to whatever you want, 777, 600, etc.

Posted in BASH - Tagged chmod, directory, file, files, find, permission, recursive, recursively, set, type

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top