problem with "sudo su"

Bug #238623 reported by Gerardo Castro
2
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
Invalid
Undecided
Unassigned
sudo (Ubuntu)
New
Undecided
Unassigned

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]
gejo@lamaquina:~

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
sudo:
  Instalados: 1.6.9p10-1ubuntu3.2
  Candidato: 1.6.9p10-1ubuntu3.2
  Tabla de versión:
 *** 1.6.9p10-1ubuntu3.2 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1.6.9p10-1ubuntu3 0
        500 http://archive.ubuntu.com hardy/main Packages

gejo@lamaquina:~$ uname -r
2.6.24-18-generic

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
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=es_UY.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux 2.6.24-18-generic x86_64

Tags: apport-bug
Revision history for this message
Gerardo Castro (gejocastro-gmail-deactivatedaccount-deactivatedaccount) wrote :
Changed in gnome-terminal:
status: New → Invalid
Revision history for this message
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.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.