Comment 9 for bug 113778

Revision history for this message
rashelleym (moorere) wrote :

Using "Dapper Drake" 6.06 LTS for 386 architecture, I edited /etc/hostname directly, and somewhat later discovered that I was locked out of sudo with the message "sudo: unable to lookup [new server name" via gethostbyname()," after (I believe) at least one restart. I had no idea a script should be invoked when the hostname is changed.

Pat72's comment about simply sudoing the same command over and over allowed me to unlock it, after between 10 and 20 tries. So this method of bug reporting seems good to participate in, even to the minor extent of clarifying that it seems to happen when /etc/hostname is directly edited, too.