You could also do
chown -R username:groupname .
, which would change the permissions on the current directory, and then recurse down inside of it and all subfolders to change the permissions.
chmod -R 666 /var/www
will give read, write permissions for everyone.