Jump to content

Talk:Chattr

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Hi! Excuse me, how can it be that

+i is to set the immutable bit to prevent even root from erasing a file.

if man page of the command says:

A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute.

I think that's a bit misleading: can someone explain it (even to me) better? --Janesconference 15:08, 12 September 2007 (UTC)[reply]

Ah, that's ok: I understood; root can't remove the file but it can toggle the i flag. I'll edit the article accordingly. --Janesconference 15:10, 12 September 2007 (UTC)[reply]