Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I've changed my machine name through editing /etc/hostname file. but since I did, a weird message appears whenever I sudo:

sudo: unable to resolve host Tehuti

then it asks for password normally.

What is wrong and is there a correct way to change name with causing problems?

share|improve this question

marked as duplicate by Lekensteyn, vasa1, hhlp, stephenmyall, Seth Mar 6 '13 at 19:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 2 down vote accepted

Check in your hosts file(/etc/hosts), for the entry of Set your new hostname there as well. So probably for you: Tehuti

share|improve this answer

You have to edit /etc/hosts too. Replace old name with new name.

share|improve this answer
that's it, thanks – ashams Mar 5 '13 at 21:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.