Debian 10 sudo nopasswd setting

作者:admin | 时间:December 24, 2019 | 分类:linux | 评论:0 ℃
$su root
#chmod u+w /etc/sudoers
#vim /etc/sudoers

xxx  ALL=(ALL:ALL)   NOPASSWD:ALL

#chmod u-w /etc/sudoers
$su xxx

Enjoy it!