Every time I try to do a sudo command on an Ubuntu server I get this error:
sudo: unable to resolve host shadowlandsmc
This includes logged onto root. Please help because it's posing a huge problem
Sudo command not working
-
- New to forums
- Posts: 5
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Sep 20, 2012 9:09 pm
Re: Sudo command not working
I haven't seen this happen before with sudo. But, you should be able to make your hostname resolve by editing /etc/hosts and adding an entry like this:
127.0.0.1 shadowlandsmc
127.0.0.1 shadowlandsmc
Re: Sudo command not working
Thanks edge, that seemed to fix it