On this page

(Optional) Deleting the Local User

Updated on 2022-09-09 GMT+08:00

Scenario

A local user is created during the VM creation. If you do not need it any longer, delete it.

Procedure

Run the userdel -rf xxx command.

xxx indicates the name of the local user. If no folder of this user exists in the /home directory, the user is deleted successfully.

NOTE:

If the local user fails to be deleted, restart the VM, log in to the VM as user root, and run the userdel -rf xxx command again.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback