filmov
tv
Adding new user with useradd command on Ubuntu

Показать описание
What I have done in this video:
1. Created new user with home directory and set default shell to bash.
2. I set up password for new user(bob).
3. I added this new user(bob) to sudo group so that I can use sudo with this user.
4. I switched from my account(blago) to this new account(bob)
My advice - use adduser command , it is simpler.
sudo useradd -d /home/user -m -s /bin/bash -g sudo user
1. Created new user with home directory and set default shell to bash.
2. I set up password for new user(bob).
3. I added this new user(bob) to sudo group so that I can use sudo with this user.
4. I switched from my account(blago) to this new account(bob)
My advice - use adduser command , it is simpler.
sudo useradd -d /home/user -m -s /bin/bash -g sudo user