Specifically, what commands do I run from the terminal?
How do I add a user in Ubuntu? [closed]
Asked Answered
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? –
Anticlerical
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.
The adduser is so efficiently. –
Blankbook
© 2022 - 2024 — McMap. All rights reserved.