I created a website and put all html files on one folder e.g. /var/www, everything is fine on initial stage because I always use sudo <command>
Then, there are two admin users user1 and user2, I grant the folder permission for the /var/www as below command:
sudo chown -R root:admin /var/www
sudo chmod -R 664 /var/www
So the problem is, when I use as "user1" ID upload files to that folder, user2 cannot modify my created files or folders, i check that the file permission status as below
drwxr-xr-x user1 user1 4096 2012-03-22 16:27 stylesheets/
-rw-r--r-- user1 user1 787 2012-03-23 11:12 index.html
So how can two admin users modify all the files in that folder?