Changing directory or file permissions or ownerships

Recursively change ownership of directories or files

find /www -type d -exec chown root:root {} \;

find /www -type -f -exec chown root:root {} \;

1: find directories under /www and execute the chown command on each directory found and change their ownership to root
2: find files under /www and execute the chown command on each directory found and change their ownership to root

 

Recursively change permissions for a directory or file

find /www -type d -exec chmod 644 {} \;

find /www -type f -exec chmod 644 {} \;

 

Your password – change it

I get a number of reports that there are attempts to login to email accounts. Those are most likely bots that try to guess your email password. If you’re stuck in the 80s or 90s then this means that your password is literally just a single word with at least 8 characters.

Time to change it. Seriously.

Change it from a password to a passphrase — the one that’s stuck in your head since December last year. Or invent one that you know you’ll never forget. Make your phrase at least 17 characters in your own language or dialect. Just be sure you won’t forget it.

Too many passphrases to remember? Use a password manager that works for you.  lifehacker has a recently updated list of their top 5 password managers. Pick your poison.