[Linux] Ubuntu 建立sudo權限帳號
Oct 21, 2019
一、建立帳號
adduser username
二、設定密碼
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
三、設定資訊(一直Enter略過)
Changing the user information for 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]
四、加入sudo權限群族(直接把權限開到最大)
usermod -aG sudo usernameusermod -aG root username
五、查看加入權限群族
groups username