Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a user in Ubuntu? [closed]

Specifically, what commands do I run from the terminal?

like image 516
quackingduck Avatar asked Sep 01 '08 18:09

quackingduck


People also ask

How do I give a user full permission in Ubuntu?

Type “sudo chmod a+rwx /path/to/file” into the terminal, replacing “/path/to/file” with the file you want to give permissions to everyone for, and press “Enter.” You can also use the command “sudo chmod -R a+rwx /path/to/folder” to give permissions to the selected folder and its files.

How do I edit users in Ubuntu?

Open the Account Settings dialog either through Ubuntu dash or by clicking the down-arrow located at the top right corner of your Ubuntu screen. Click your username and then select Account Settings. The Users dialog will open. Please note that all the fields will be disabled.


1 Answers

Without a home directory

sudo useradd myuser 

With home directory

sudo useradd -m myuser 

Then set the password

sudo passwd myuser 

Then set the shell

sudo usermod -s /bin/bash myuser 
like image 192
quackingduck Avatar answered Oct 13 '22 07:10

quackingduck