Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 754  / 1 Year ago, tue, december 13, 2022, 12:57:29

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?


More From » hostname

 Answers
3

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


[#32346] Wednesday, December 14, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
epypian

Total Points: 130
Total Questions: 111
Total Answers: 113

Location: Romania
Member since Mon, Jun 6, 2022
2 Years ago
;