ubuntu创建a sudo user

来源:互联网 发布:Java开发dwg批量转jpg 编辑:程序博客网 时间:2024/06/02 19:42

1. adduserusername

2. usermod -aG sudo username

     中间出现的以下内容,全部为空略过即可:

Enter the new value, or press ENTER for the default    Full Name []:    Room Number []:    Work Phone []:    Home Phone []:    Other []:Is the information correct? [Y/n]

3. 退出ssh,重新用新user登录


参考:

https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart

0 0
原创粉丝点击