sudo 不用再输密码

Posted jsdy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sudo 不用再输密码相关的知识,希望对你有一定的参考价值。

if you are upset with sudo password, add this line in /etc/sudoers

  • xxxxxx ALL=(ALL) NOPASSWD: ALL (xxxxxx is your login name)
  • sudo will not ask anymore for a password

即:

sudo gedit /etc/sudoers

在最后添加:

xxxxx ALL=(ALL)NOPASSWD:ALL

 其中xxxxx换成自己的名字。

以上是关于sudo 不用再输密码的主要内容,如果未能解决你的问题,请参考以下文章