problem with "sudo su"

Bug #238623 reported by Gerardo Castro on 2008-06-09
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
sudo (Ubuntu)

Bug Description

Binary package hint: gnome-terminal

Sometimes (I couldn't yet determine in which cases), when I type 'sudo su' in terminal, I am not asked for a password, the console outputs this:

gejo@lamaquina:~$ sudo su
(sudo: unable to resolve host lamaquina)
gejo@lamaquina:~$ root@lamaquina:/home/gejo#

If I press enter it returns me to the user prompt

gejo@lamaquina:~$ sudo su
sudo: unable to resolve host lamaquina
gejo@lamaquina:~$ root@lamaquina:/home/gejo# [enter]

If I press any other key, gnome-terminal closes.

If I open two or three terminals, then it works in the second or the third(couldn't determine when nor why),
It prompts me for a password and then I can work as a superuser till I exit.

Thank you, gejocastro.

gejo@lamaquina:~$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04

gejo@lamaquina:~$ apt-cache policy sudo
  Instalados: 1.6.9p10-1ubuntu3.2
  Candidato: 1.6.9p10-1ubuntu3.2
  Tabla de versión:
 *** 1.6.9p10-1ubuntu3.2 0
        500 hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1.6.9p10-1ubuntu3 0
        500 hardy/main Packages

gejo@lamaquina:~$ uname -r

ProblemType: Bug
Architecture: amd64
Date: Mon Jun 9 13:59:27 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gnome-terminal
NonfreeKernelModules: nvidia
Package: gnome-terminal 2.22.1-0ubuntu2
PackageArchitecture: amd64
SourcePackage: gnome-terminal
Uname: Linux 2.6.24-18-generic x86_64

Changed in gnome-terminal:
status: New → Invalid
Old_Soldier (charles.davis) wrote :

though this is probably more suited as a question than a bug report I will leave it to you or a triager to make that conversion.

(sudo: unable to resolve host lamaquina) indicates your host name in /etc/hosts doesnt match your hostname in /etc/hostname.

To resolve that issue change /etc/hosts and remove any suffixes to the hostname. starting in early alpha of ubuntu 8.04 this has been an issue. It is probably best to do this from a root login (recovery mode)

Once you have done this the sudo problems should disappear.

Thomas Kluyver (takluyver) wrote :

Not seeing this in konsole-kde4

Something I've read recently prompts me to ask, have you change the network name of your computer since you set it up?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers