Skip to main content

Posts

Featured

File Attributes; Root user cannot even delete this file after setting this permission.

One of the reason linux is taking up the corporate world is due to it level of security. There might be a sensitive file on your system you want no one to mess with. Like deleting, renaming or modifying the content of the file. As a system Administrator you are to make sure that file is not mishandled by other users. A user may have full permission(rwx) on the file but when an attribute is set on that file not even the root user can modify it. chattr is the command for setting attribute on files and directories. It uses flags(A, a, S, i, u, d, t, j) and operators(=, +,  -).  Command syntax chattr [operator][flag] filename  To list or show the attribute of a file, we use lsattr Below is the descriptions of some attributes and it associate flags   Attribute  Flag Description    No atime updates A  file atime record is not modified This avoids a certain amount of disk I/O operation   append only  a You can only append text to the file This attribute is very useful as a means  of keeping r

Latest posts

Interesting usage of the PV command with echo

INTERNSHIP BROUHAHA, THIS PROB MUST BE SOLVED.

How to attach an ISO image to VM (KVM)- Screenshots

Setup A Local YUM Repository On RHEL 8 From ISO Image

How to install CentOS 7 with Screenshots

Why you should change your current OS to Linux OS