If I move (as root) a file to my home directory say
readme2.txt from /root and then "ls -l" I get
-rw-r--r-- 1 root root
2032 2003-06-08 08:05 Readme.txt
which is what I would have expected.
my account ID is:
uid=500(gmkelly) gid=100(users) groups=100(users)
if I now "vi Readme.txt" as myself which is owner/group
root and modify the file, then force write (w!) it back
this changes the file permissions as follows:
-rw-r--r-- 1 gmkelly users
2033 2003-06-08 08:14 UART_Readme.txt
Is this correct functional operation or a bug?
I would have thought that the vi editor would not have
been able to write to the file as it is root owned, and
my account is not a member of the root group.
Doesn't seem right to me.
I am running Linux Kernel 2.4.19 on SuSE 8.1 (i386)
grahame (at) wildpossum (dot) com