User add/delete in Ubuntu 10.04

Posted: September 13, 2010 in HowTo
Tags: , ,

Adding a user:
sudo useradd -d /home/<username> -s /bin/<shell> -m <username>

shell – sh for shell, bash for bourne shell and ksh for korn shell

Example:
$ sudo useradd -d /home/tomcat -m tomcat -s /bin/bash

Deleting a user:
sudo userdel <username>

Example:
$ sudo userdel tomcat

Advertisements
Comments
  1. pm says:

    hi,

    i have deleted the user and its home directory from the following command:

    deluser –remove-all-files username

    But still that user is coming at the login prompt when I try to login to Ubuntu 10.04 lts. Please let me know how to resolve this issue. Thanks in anticipation.

  2. pm says:

    I deleted the user but that particular user’s name is coming at the ubuntu 10.04 lts login prompt and not getting deleted from there. please let me know how to achieve this. thx.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s