problem with "sudo su"
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:
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:
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://
100 /var/lib/
1.
500 http://
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/
NonfreeKernelMo
Package: gnome-terminal 2.22.1-0ubuntu2
PackageArchitec
ProcEnviron:
PATH=/
LANG=es_UY.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux 2.6.24-18-generic x86_64
Changed in gnome-terminal: | |
status: | New → Invalid |
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.