Re: [SOLVED] Cannot remove a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 12/12/2011 01:04 PM, Mogens Kjaer wrote:
> On 12/12/2011 12:45 PM, Theo Band wrote:
>> Any ideas on what else I can do to get rid of this file?
>>
> Does
>
> man lsattr
> man chattr
>
> help you?
>
> Mogens
>
Thanks this is indeed the the answer:

# lsattr aquota.user
----i--A----- aquota.user

       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 supe-
       ruser  or  a process possessing the CAP_LINUX_IMMUTABLE
capability can set or clear this
       attribute.

# chattr -i aquota.user
# rm aquota.user
rm: remove regular file `aquota.user'? y

Learned something today :-)

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


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux