close
1. 建立使用者
# useradd test1
2. 建立密碼
# passwd test1
3. 修改使用者群組
# vim /etc/group
user:x:18:other_group1,other_group2
4. 設定 sudo 權限
# visudo (或 vim /etc/sudoers)
在 root ALL=(ALL) ALL 這行後面加上
test1 ALL=(ALL) ALL
第一次使用 sudo 要輸入 test1 的密碼
全站熱搜