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

前端 未结 26 2155
失恋的感觉
失恋的感觉 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:03

    1 open /etc/sudoers

    type sudo vi /etc/sudoers. This will open your file in edit mode.

    2 Add/Modify linux user

    Look for the entry for Linux user. Modify as below if found or add a new line.

     ALL=(ALL) NOPASSWD: ALL
    

    3 Save and Exit from edit mode

提交回复
热议问题