0

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?

Eric Carvalho
  • 53,609
  • 102
  • 137
  • 162
ashams
  • 261
  • 2
  • 12

2 Answers2

2

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

127.0.1.1 Tehuti

Martin
  • 342
  • 1
  • 6
1

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

Eric Carvalho
  • 53,609
  • 102
  • 137
  • 162