Tags
#sudo
Missing sudo password
Infrastructure as Code
Ansible "Missing sudo password": give it the password safely, or allow the user properly
Fix Ansible "Missing sudo password": use --ask-become-pass, ansible-vault for the become password, or NOPASSWD in sudoers, plus "Incorrect sudo password" and timeouts.
Beginner · 4 min read
not in the sudoers file
Linux
"user is not in the sudoers file": how to get sudo back, even without the root password
Fix "user is not in the sudoers file": add yourself to the sudo or wheel group with su, recover without a root password, use visudo safely and fix a broken sudoers file.
Beginner · 4 min read
sudo: unable to resolve host
Linux
"sudo: unable to resolve host": fix /etc/hosts after a hostname change
Fix "sudo: unable to resolve host … Name or service not known" on Ubuntu and Debian: add the hostname to /etc/hosts, and keep cloud-init from undoing it.
Beginner · 3 min read