What should I do if I can't delete files in linux with root privileges?

  
                

On Linux systems, the root user has the highest privilege, can do anything, delete any unwanted software or files, and can say omnipotent. But sometimes the root user can't delete a small file, a file that looks like a normal file. In fact, as long as the root user changes the properties of the file, it can still be deleted. A user wants to delete a file in Linux. The result is that there is no permission to delete it. It can only be deleted by the root user, but the same result says that it cannot be deleted. What should I do? Let's take a look at the solution

The steps are as follows:

1. First delete a file, prompt ‘Operation not permitter’, ordinary users cannot delete;

2 Upgrade the user to the root user, then delete it, and then prompt ‘Operation not permitter’, even the root user can not delete, this is not scientific;

3, the original file attribute is inside, Just log in to the superuser, check the properties of the file, and then use the root user to cancel the property, the file will be restored to half of the file;

4, in the ordinary user to delete the file, you can succeed .
Users who have encountered this problem can follow the above steps to help you solve unnecessary troubles one by one! Let root have the highest privilege again, delete files that you don't need!

Copyright © Windows knowledge All Rights Reserved