Sudo: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
Line 4: Line 4:
*[https://www.digitalocean.com/community/tutorials/how-to-edit-the-sudoers-file How to edit the sudoers file]
*[https://www.digitalocean.com/community/tutorials/how-to-edit-the-sudoers-file How to edit the sudoers file]


=HOWTO=
==Edit files owned by root==
sudo -e /etc/hosts
= FAQ =
= FAQ =



Revision as of 08:32, 21 May 2025

Links

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