How to make File Undeletable even by root user in Linux

How to make File Undeletable even by root user in Linux

Date: 30-01-2021

  1. You can set attribute of a file by using below command.
    # chattr +i directory/file
    Use the below command to view attributes of a file.
    # lsattr directory/file
  2. You can remove the attribute of a file.
    # chattr -i directory/file

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top