Linux记录-配置sudoers无密登录和环境变量

su root

vim /etc/sudoers.d/sfapp

sfapp ALL=(ALL) ALL
sfapp ALL=(ALL) NOPASSWD: ALL

Defaults !env_reset

:wq!

原文地址:https://www.cnblogs.com/xinfang520/p/10298248.html