參考網頁

2018年9月13日 星期四

user加wheel 群組後 無法sudo問題

usermod -G wheel user

user已加入user wheel grooup後
is not in the sudoers file.  This incident will be reported.

vim /etc/sudoers

## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL  <===去#
Defaults log_host,logfile=/var/log/sudo.log<==加這行記錄始用user sudo的log

沒有留言:

張貼留言