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换成自己的名字。

posted @ 2019-12-25 19:26  寄生的鱼  阅读(415)  评论(0编辑  收藏  举报