Sudo: Difference between revisions
From DWIKI
m (→Links) |
m (→FAQ) |
||
Line 23: | Line 23: | ||
== no password == | == no password == | ||
%sudo ALL=(ALL) NOPASSWD: ALL | %sudo ALL=(ALL) NOPASSWD: ALL | ||
== sudo: unable to resolve host == | |||
Fix /etc/hosts |
Latest revision as of 13:09, 27 May 2024
Links
- https://stackoverflow.com/questions/14277116/suppress-log-entry-for-single-sudo-commands
- How to edit the sudoers file
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