Learn to use extended file attributes in Linux to boost security

Written By
Web Webster
Web Webster
Dec 16, 2009

“With all the talk of enhanced file system security and security
frameworks, some of the basic file protection enhancements provided
by the Linux kernel have been forgotten. While there is certainly a
distinct place for security applications like SELinux, GrSecurity
and others, there are simple means for securing files as well. ACLs
and extended attributes for files are simple and easy to use, and
can go a long way in securing files.

“The first tools to use with extended attributes is chattr,
which changes file attributes for files, and lsattr which lists
those attributes. There are a number of extended attributes you can
add or remove from files, including “a”, which makes a
file append-only, and “i” which makes a file immutable
(cannot be modified, deleted, or renamed, nor can any link be
created to the file). There are other attributes that deal with
compression, undeletion, secure deletion, and journaling as
well.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.