sudo: no tty present and no askpass program specified

xiaoxiao2021-02-28  5

sudo visudo

Then edit that file to add to the very end:

username ALL = NOPASSWD: /fullpath/to/command, /fullpath/to/othercommand

eg

john ALL = NOPASSWD: /sbin/shutdown, /sbin/poweroff, /sbin/start, /sbin/stop
转载请注明原文地址: https://www.6miu.com/read-2400271.html

最新回复(0)