Your Trusted Partner

Tag: Linux Server Management

Bug : rm -rf, chmod as root: permission denied?

To solve this issue :

You have to use  chattr command with directory. Like this :

$ chattr -i dir

Then you can easily remove it.

Specially this problem occurs when a file becomes immutable.

Unable to delete file, even when running as root

Check the permissions of the directory. To delete a file inside it, it should be writable by you

chmod ugo+w .

and not immutable or append-only:

chattr -i -a .

Check with ls -la and lsattr -a.

© 2020 Webdesigncr3ator

Theme by Anders NorenUp ↑