Linux user permissions
I need some advice/help with setting up a user in linux please.
What I have done so far is disabled the root account, changed the ssh port and created a new user to use (lets call the user shaanl). I've added shaanl to the www-data group and the admin group, by putting the user name after the : in /etc/group
I want shaanl to be able to add/delete/edit files in the /var/www folder. The user can do this at the moment, however the files are created using the user:group shaan:shaan. How can I get it so that the default group is always www-data?
Also, how can I get it to have rwx permissions by default for the group, user and other whenever I create new files and folders?