How to fix 'sudo: no tty present and no askpass program specified' error?

前端 未结 26 1501
失恋的感觉
失恋的感觉 2020-11-22 03:36

I am trying to compile some sources using a makefile. In the makefile there is a bunch of commands that need to be ran as sudo.

When I compile the sour

26条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 04:01

    Try:

    1. Use NOPASSWD line for all commands, I mean:

      jenkins ALL=(ALL) NOPASSWD: ALL
      
    2. Put the line after all other lines in the sudoers file.

    That worked for me (Ubuntu 14.04).

提交回复
热议问题