nate wrote:
> Scott Silva wrote:
>
>   
>> But if you only have read access to the original file, can you overwrite it?
>>     
>
> If you have write access to the directory yes you should be able
> to, if you only have read access to the directory I would expect
> not.
>   

nope.

[pie...@xxxx test]$ grep pierce /etc/group
postgres:x:26:pierce
pierce:x:503:
[pie...@xxxx test]$ touch x
[pie...@xxxx  test]$ ls -la
total 8
drwxrwxr-x  2 pierce pierce 4096 May 13 07:58 .
drwxr-xr-x 37 pierce root   4096 May 13 07:57 ..
-rw-rw-r--  1 pierce pierce    0 May 13 07:58 x
[pie...@xxxx test]$ chgrp postgres x
chgrp: changing group of `x': Operation not permitted


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to