DanKoLinux
New Member
One thing confuses me about file permissions in Linux.
root creates file root_file_644 with 644 permissions in user Alis home dir. So as I know Alis can delete this file root_file_644 , as Alis is owner of dir /home/Alis and acording to linux permissions file deletion operation is dir operation, but Alis can't append contents to this file.
But on screenshot below you can see that Alis can change file owner of root file(file root_file_644) and appends contents to this file.
I supose that vi at first opened root_file_644 with read permission, after edit content in a buffer, and then creates new file(owned by Alis, but named as old root file - root_file_644) and delete root old file root_file_644. But the inode number of old(root file) and new(Alis files) is the same.
root creates file root_file_644 with 644 permissions in user Alis home dir. So as I know Alis can delete this file root_file_644 , as Alis is owner of dir /home/Alis and acording to linux permissions file deletion operation is dir operation, but Alis can't append contents to this file.
But on screenshot below you can see that Alis can change file owner of root file(file root_file_644) and appends contents to this file.
I supose that vi at first opened root_file_644 with read permission, after edit content in a buffer, and then creates new file(owned by Alis, but named as old root file - root_file_644) and delete root old file root_file_644. But the inode number of old(root file) and new(Alis files) is the same.