chattr command

Q. I’m getting following error on my Debian Linux system: mv cannot move /etc/resolv.conf.dhclient-new to /etc/resolv.conf: Operation not permitted How do I fix this problem?

{ 0 comments }

Q. How do I write protect a file under Linux? I’m using CentOS 5 server Linux operating system. I need prevent accidental changes to my files. A. There are two ways to write protect a file under Linux. Method #1: You can make file readonly by removing users’ write permission for a file. Under Linux […]

{ 4 comments }

Q. How do I write protect file under Linux so that no one can modify it? A. You need to use chattr command, which changes the file attributes on a Linux second extended file system. The chattr command supports various attributes. A file with the i attribute cannot be modified: it cannot be deleted or […]

{ 1 comment }