Ubuntu: How to Remove a User Account

Home -> UNIX -> Linux

4093 views

From the computer of: shamanstears (690 recipes)
Created: Jan 13, 2008     Updated: Jan 16, 2008


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

From time to time, it becomes necessary to remove a user account from your computer. Removing a user account from your Ubuntu system is a simple task that requires two separate terminal commands.

1. Open a terminal window.

2. First, you'll need to delete the user account. Input the following command and hit Enter (change to the name of the user account that is to be removed):

sudo userdel <username>

3. Now you'll want to delete the Home directory for the deleted user account. Input the following command and hit Enter (change to the name of the user account that is to be removed):

sudo rm -r /home/<username>/

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Upgrade Ubuntu From Dapper(6.06) to Edgy(6.10)
  Ubuntu : Dual booting w/XP using Grub bootloader | editing bootloader in Ubuntu
  Ubuntu: How to Enable Automatic Login
  Ubuntu: Getting KDE 4.0 to Accept Your sudo Password
  Ubuntu: Install the Ubuntu Studio Theme
  Ubuntu: Stop sudo Commands from Prompting for a Password
  Ubuntu: What Version am I Running?
  Ubuntu: Optimize Font Rendering for Viewing on LCDs and Laptops
  Ubuntu: Enable DVD Playback
  Ubuntu: 4 Ways to Install Programs or Packages

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.