創建用戶:
useradd testuser
echo "mypasswd" | passwd --stdin testuser
編輯文件 /etc/sudoers
或者使用 visudo 命令 (建議使用這種方法)
添加如下一行即可:
testuser ALL=(ALL) ALL