Quantcast
Channel: sudo: no tty present and no askpass program specified - Ask Ubuntu
Viewing all articles
Browse latest Browse all 7

Answer by Peter for sudo: no tty present and no askpass program specified

$
0
0

You can also create a file like "sudo_shutdown" in /etc/sudoers.d, with content:

# Allow admins to shutdown without pass%adm ALL=(ALL) NOPASSWD: /sbin/shutdown

This allows users which are in the adm group to shutdown without a password.


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>