Re: File attributes puzzle

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

 



On Thursday, March 31, 2011 09:27:00 Anne Wilson wrote:
> I have a small text file that I want to ensure cannot be accidentally deleted, 
> so I ran 
> 
> chattr -i /home/anne/WebPages/UserBase/filename.txt

If you want to add an attribute you have to use +<attribute> , because -i means "remove". 
See man chattr
so you need: chattr +i /home/anne/WebPages/UserBase/filename.txt

> (as root, of course).  Running lsattr against the same file produced 
> 
> -------------e- /home/anne/WebPages/UserBase/filename.txt
> 
> 'i' doesn't show in ls -l filename, either.  I haven't come across 'e' before.  
> What is it, and is my file immutable or not?

What is it: man chattr: The 'e' attribute indicates that the file is using 
extents for mapping the blocks on disk.  It may not be removed using chattr(1).

Is your file immutable: no, it isn't

Michal
_______________________________________________
kde mailing list
kde@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/kde
New to KDE4? - get help from http://userbase.kde.org


[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux