Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Unable to change permission of a file in linux

I tried to remove the immutable permission of hosts file with "sudo chattr -i /etc/hosts" command but it is not changing. Can anyone please help me with this.
enter image description here

I tried to forcefully write the file with :wq! In vim still the file is not changed

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think, you can solve this problem using:

sudo chattr -ai /etc/hosts

Hope this helps!

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading