NamHuy

Archive for April, 2008

add delete and switch user in ubuntu by command lines

by Huy Tran on Apr.20, 2008, under Linux, Open Source, Tips - Tricks, Ubuntu

First, I want to add a user. So how to do it?

+ To add user:

sudo adduser <username>

to add password for your user

sudo passwd <username>

+ How can i switch from one user to another one? In this example, i want to switch from one user to another one.

su <username>

and type in your password to login

after that, you will be at a ‘$’ prompt. type:

bash

to get to a normal prompt.

+ How can I delete a user?

sudo userdel <username>

Leave a Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...