I think that you are probably logged in as root which is why the files are given that permissions.
You use the commands chown (change owner) and chgrp (change group) to change the user and group.
example of recursive is something like;
chown -R web1 /the/path/*
chgrp -R <groupname> /the/path/*