Bigbruin.com
Home :: Reviews & Articles ::
Forum :: Info :: :: Facebook :: Youtube :: RSS Feed
Search  :: Register :: Log in
View Single Post  Topic: something like a universal chmod 
Author Message
thePMG
Rated XXX


PostPosted: Tue, 21 Dec 2004 21:53:38    Post Subject: Reply with quote

I hate using chmod recursevly as it sets everything (including files) to whatever permissions you might just want on your directories, and vice versa.

This works for me:

cd /some/location && find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \;

I use it to keep things sane in my file storeage area.
_________________
It's got something to do with motherboards and fuzzy logic, f**k, I don't know...
View user's profile Send private message

Contact Us :: On Facebook :: On Youtube :: Newsletter :: RSS Feed :: FAQ :: Links :: Sponsors :: Privacy Policy
Copyright © 2000 - 2023 Bigbruin.com - All rights reserved