Ubuntu add new user

  • sudo adduser username
  • sudo usermod -aG sudo username
  • sudo su username
  • sudo groupadd docker
  • sudo usermod -aG docker $USER
  • open a new terminal: newgrp docker
username=$1
sudo adduser $username
sudo usermod -aG sudo $username
sudo usermod -aG docker $username

你可能感兴趣的:(Ubuntu add new user)