chattr: Operation not supported while reading flags

When making a file immutable with chattr command, I get the following error

The error was due to the file I was trying to chattr being a symlink, not a real file.

To fix the error, chattr the actual file.

Leave a Reply

Your email address will not be published. Required fields are marked *