add delete and switch user in ubuntu by command lines

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>

Related posts:

  1. Change the root password on Ubuntu
  2. Terminal or shell command to shutdown or reboot Ubuntu Linux
  3. LOST USER PASSWORD
  4. CVS server on Ubuntu
  5. Ubuntu Linux enable telnet service

2 thoughts on “add delete and switch user in ubuntu by command lines

  1. How to pass from sudo to normal user. I log by default as a root and I want to pass to normal user su pinadone change the user but still as a root.
    Well first I add useer with sudo adduser pinadone

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>