Sudo: Difference between revisions
From DWIKI
mNo edit summary Tag: wikieditor |
m →FAQ Tag: wikieditor |
||
| Line 29: | Line 29: | ||
== sudo: unable to resolve host == | == sudo: unable to resolve host == | ||
Fix /etc/hosts | Fix /etc/hosts | ||
==sudo: a terminal is required to read the password== | |||
Double check your sudoers line | |||
Revision as of 10:41, 21 July 2025
Links
- https://stackoverflow.com/questions/14277116/suppress-log-entry-for-single-sudo-commands
- How to edit the sudoers file
HOWTO
Edit files owned by root
sudo -e /etc/hosts
FAQ
sudo: sorry, you must have a tty to run sudo
Defaults:zabbix !requiretty
sudo: foo : user NOT in sudoers
maybe you tried including a file like /etc/sudoers.d/foo.conf ?
enable file after adding to /etc/sudoers.d/
visudo -v /etc/sudoers.d/myfile
no password
%sudo ALL=(ALL) NOPASSWD: ALL
sudo: unable to resolve host
Fix /etc/hosts
sudo: a terminal is required to read the password
Double check your sudoers line
