Specifically, what commands do I run from the terminal?
-
Aside from the fact that it seems to be a badge grab, why is this getting voted down so hard? – jfm3 Sep 17 '08 at 20:29
-
Probably because it is a really simple question. A quick search in google would give the answer. – givanse Sep 22 '08 at 2:42
-
1Google is your friend. Also, this belongs on ServerFault. – Matt Fichman Sep 22 '09 at 20:46
-
2Feel free to add it there. The question predates ServerFault. – quackingduck Sep 23 '09 at 11:17
-
1I don't have anything against this question, I'm just moving it to the more appropriate SE. – Andrew Grimm Mar 7 '11 at 4:32
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
-
unfortunately, I indeed follow this to add a user, and then get the error 'Access denied' when I try to sign in with it. What's wrong with it? – Brady Zhu Sep 17 '13 at 6:03
Here's the command I almost always use (adding user kevin):
useradd -d /home/kevin -s /bin/bash -m kevin
There's basicly 2 commands to do this...
- useradd
- adduser (which is a frendlier front end to useradd)
You have to run them has root. Just read their manuals to find out how to use them.
-
1