The problem that the folder of the old user in cygwin cannot be deleted

 

The problem manifests like this:

If you have installed cygwin and used it before, the relevant user directory will appear in the cygwin/home/ directory, for example: cygwin/home/User001.

Then you reinstall the system, and when you use cygwin again, a new user folder is created, for example: cygwin/home/User002.

At this time, the problem comes, the previous User001 cannot be deleted, even if the command rm -rf  User001 is used in cygwin, it cannot be deleted (the permission is not enough), and the old user folder is modified by chmod 777  User001 , and the permission is not enough.

 

Solution:

Right-click to run Cygwin.bat with administrator privileges , and then delete it through the command rm -rf. If it still cannot be deleted, use chmod 777 to modify the permissions and then delete it.

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326846829&siteId=291194637