Solution to insufficient deletion permissions in Linux: 1. Use "chmod 777 file name" to add read and write permissions to the file to delete it; 2. Use root identity and use "cd path" with "rm -rf Files or folders that need to be deleted can be deleted using the command.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
The first method: the folder is locked
Use the command sudo chmod 777 test to give this test folder Read and write permissions.
You can click the lock on the folder, and then you can delete it
Second type: The folder is not locked, but it still cannot be deleted, and it prompts that the permissions are insufficient
In this case, the properties and permissions of the folder are as follows.
Without permission, naturally it cannot be deleted. But you can do it as root
1. Enter sudo -i to enter root
2. cd to select the path
3. rm -rf file to delete the file or folder
Recommended learning: Linux video tutorial
The above is the detailed content of What to do if Linux deletion permission is not enough. For more information, please follow other related articles on the PHP Chinese website!