![]() |
| Home | Apache | PHP | Ubuntu | MySQL | Linux | HTML | Win | CSS | Perl | Javascript | Rants | Retro |
|
||
| Create a new user in terminal Ubuntu To create via the terminal in Ubuntu enter the following command: sudo useradd -d /home/newuser -m newuser sudo passwd newuser You will be asked to enter you root password. 1) What the following commands above will do, is create a new account/user called newuser, and create a home directory for newuser 2) After this it will ask you create a new password for newuser Once you have entered these commands your new user account will be created. This will create a basic user account. Is it not easier to do this using the GUI in ubuntu? Imagine if your 3000 miles away, and you are asked to create a new user account. You don't have remote desktop setup, but you do have ssh configured. You can then login to the terminal via ssh, putty and create the new user, in a matter of seconds. |