chmod - file permission on writable

Posted by user1350338 on Ask Ubuntu See other posts from Ask Ubuntu or by user1350338
Published on 2012-09-27T02:03:37Z Indexed on 2013/06/29 16:30 UTC
Read the original article Hit count: 203

Filed under:
|

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/ <BR><BR><BR>

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?

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about chmod