Home > bash > Adding and deleting users in Ubuntu

Adding and deleting users in Ubuntu

Well I keep on forgetting how to do this.

$ sudo adduser 2>/dev/null –system –group rodnee
Adding system user `rodnee’ (UID 109) …
Adding new group `rodnee’ (GID 115) …
Adding new user `rodnee’ (UID 109) with group `rodnee’ …
Creating home directory `/home/rodnee’ …

$ sudo deluser –remove-home rodnee
Looking for files to backup/remove …
Removing files …
Removing user `rodnee’ …
Warning: group `rodnee’ has no more members.
Done.

Advertisements
Categories: bash Tags:
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: