Change folder ownership and permissions (chown / chmod) — by Lucian Adrian Grijincu on Ask Ubuntu
Shows how to make your user own a folder and everything inside it with chown -R, and optionally the group too. It's useful when files created with sudo have become unwritable.