Ubuntu Delete remove a user
Ubuntu: Delete (remove) a user on Linux Ubuntu server. Before starting to this tutorial, you should be on root user first. Now do the following command:
Or if you want to remove the user files then use command:userdel demo
If the user has root privileges, you may wish to remove it.userdel -r demo
Find the following codevisudo
Remove the 3rd line. You should see only root:# User privilege specification root ALL=(ALL:ALL) ALL demo ALL=(ALL:ALL) ALL
Save the changes by pressing ctrl+o and exit ctrl+x# User privilege specification root ALL=(ALL:ALL) ALL
0 comments: