Virtual Machines

Products

Virtual Machines

Documentation > Products > Virtual Machines > Delete File in Linux and Prompt Operation not permitted

Delete File in Linux and Prompt Operation not permitted

Problem Phenomenon:

If the user deletes or moves the file in the Virtual Machines, it will prompt "Operation not permitted" error, and the operation will be unsuccessful, as shown in the following figure;

Problem Causes:

The related file was added with the i protection attribute causing the operation to fail.

Solution:

Use the lsattr command to view the file attribute. You can see that the file has been added with the i attribute; this attribute indicates that the file cannot be modified or deleted.

Use the chattr command to delete the i attribute;

After deleting the i attribute, it will be normal when you operate this file again;

Update Time:2019-08-28 21:38:32