sudo passwordless


Author: yifei / Created: June 30, 2017, 9:51 p.m. / Modified: June 30, 2017, 9:55 p.m. / Edit

$ EDITOR=vi visudo

# then add this

ALL ALL=(ALL) NOPASSWD: ALL
username ALL=(ALL) NOPASSWD: ALL
%group ALL=(ALL) NOPASSWD: ALL
Defaults env_keep += "EDITOR"

有任何问题可以发邮件到 kongyifei (at) gmail.com 讨论