I am running Ubuntu 12.04 x64 server on ext4 partition.
I set a directory's permission to '766' as below.
sudo chmod 766 /archive
drwxrw-rw- 3 root root 4096 Sep 27 10:50 archive/
But, when I tried to create new file through vi editor, permission error has occured.
vi /archive/test.txt
-------- > "/archive/test.txt" [Permission Denied]
I thought I had "write" permission.
Could anyone help me what is the problem?