A rantbox

Mon 08 January 2007

Making your files safer

Posted by Michiel Scholten in posts   

When sharing a machine with users you gave an account, you'd better take some precautions for your precious files in general dirs [like /storage or whatever]. To do so, do:

Recursively setting files to 644 and dirs to 755:
chmod -R 644 *
find . -type d -exec chmod 755 '{}' ';'

... for example. This is good to remember anyway.