Possible Duplicate:
How to set up default group permission in linux folder
I'm uploading to /var/www via SFTP and wondered how I can get it so when I upload a file or folder it always has the owner and group as www, and have the default chmod as 770.
I have tried this so far,
chmod 770 /var/www -R
chown www:www /var/www -R
and I have also tried
chmod u+s www -R
Currently when I upload a file the owner is the user I'm logged into and group www and chmod is 644.
anyone know how to help?