按顺序执行以下步骤:
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
删除用户本文标题:ubuntu 命令行 如何创建 sudo 用户
本文链接:https://www.haomeiwen.com/subject/ekxxkftx.html
网友评论