# Ubuntu Add and Delete Users

### Add User

Enter the following command:

```
sudo adduser jsmoe
```

You will be prompted to create a Unix Password:

```
Enter new UNIX password:
Retype new UNIX password:
```

Next, you will be prompted to provide user information, you can either enter the information or press Enter to bypass:

```
Changing the user information for jsmoe
Enter the new value, or press ENTER for the default
        Full Name []: Joe Smoe
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
```

Next, you will be prompted to verify the provided information is correct, press **y** to save:

```
Is the information correct? [Y/n] y
```

### Give User Root Access

Enter the following command:

```
sudo usermod -G sudo jsmoe
```

### Delete User

Enter the following command to delete user:

```
sudo deluser jsmoe
```

Enter the following command to delete user and user home directory:

```
sudo deluser --remove-home jsmoe
```