#StackBounty: #files #symlink #ext4 #delete #xattr How to make a symlink read only (`chattr +i /location/symlink`)?

Bounty: 50

How can we lock a symlink so it cannot be deleted?

With a normal file/directory chattr +i /file/location can achieve this but doing so with a symlink we get chattr: Operation not supported while reading flags on my-file.

There is a similar question, How to set chattr +i for my /etc/resolv.conf?, but without a solution that could be applied here.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.