sudo: no tty present and no askpass program specified 解决方法

sudo: no tty present and no askpass program specified 解决方法

sudo: no tty present and no askpass program specified

 

由于帐号并没有开启免密码导致的 

 

假设当前帐号为abc

切换到root下  

 

1    打开sudoers

vi /etc/sudoers

2    添加免密码

abc ALL = NOPASSWD: ALL

 

参考:

https://blog.csdn.net/a_little_a_day/article/details/78282983

上一篇:Cannot start compilation: the output path is not specified for module "salesystem". Specif


下一篇:List集合源码解读