[root@localhost ~]# sudo vim /etc/sudoers # 增加以下行 fairyfar ALL=(ALL) NOPASSWD: ALL