Problem: How do I set permissions to my files and/or directories without manually setting them up individually?
Note: You may need administrator privileges for these to work, if that’s the case simply add a sudo before typing the commands below.
If you want to chmod all your directories:
find . -type d -exec chmod 755 {} \;
and for files:
find . -type f -exec chmod 644 {} \;
That’s it!
Some links that you might find useful [External]:Related posts:
- Unix Super Tip: Easy Access to your files and directories by creating symbolic links(shortcuts)
- How to Fix: I’m unable or can’t copy, move or delete files in MAC because of insufficient privileges or permissions
- How to: Delete/Remove protected folders and files from a previous installation of Windows
- Super Tip: Pass Arguments in your Python Bindings using Lambda Functions
- Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!
Still can't see what you're looking for?









