|
1
|
useradd app |
|
1
|
passwd app |
|
1
2
|
ls -l /etc/sudoerschmod 777 /etc/sudoers |
app ALL=(ALL) ALL

|
1
|
chmod 440 /etc/sudoers |
|
1
|
su - app |
Linux - 新建用户教程(新增一个具有root权限的新用户)
原文:https://www.cnblogs.com/pinghengxing/p/14664645.html