按顺序执行以下步骤:
ssh root@server_ip_address
adduser username
usermod -aG sudo username
su - username
sudo ls -la /root
参考:
https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
-
userdel team-test
删除用户
按顺序执行以下步骤:
ssh root@server_ip_address
adduser username
usermod -aG sudo username
su - username
sudo ls -la /root
参考:
https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
userdel team-test
删除用户