after sudo su (su -), gnome-terminal [or a virtual terminal "-bash"] "exit"s ("logout"s) with any single keypress
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo |
Invalid
|
Unknown
|
|||
sudo (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: sudo
Description: Ubuntu 8.04
Release: 8.04
gnome-terminal:
Installed: 2.22.1-0ubuntu2
Candidate: 2.22.1-0ubuntu2
Version table:
*** 2.22.1-0ubuntu2 0
500 http://
100 /var/lib/
sudo:
Installed: 1.6.9p10-1ubuntu3
Candidate: 1.6.9p10-1ubuntu3
Version table:
*** 1.6.9p10-1ubuntu3 0
500 http://
100 /var/lib/
Here's how to duplicate the bug:
-Open a gnome terminal from Applications-
-or-
-Open a virtual terminal using Ctrl-Alt-F2 (for example)-
-then enter the following command
sudo su
-or-
sudo su -
-after entering your password and receiving the # prompt all is well, but, then type-
exit
-and then try get the root prompt again, as follows-
sudo su
-or-
sudo su -
-you will get a root prompt, but the very first key you press, any key, will immediately either-
"exit"
-or-
"logout"
-respectively-
Here's a cut/paste of a sample session.
Below I hit the "j" key at the root prompt and get kicked out of root.
Entering "sudo -k" temporarily allows the use of "sudo su (or sudo su -)" again.
It is necessary to type "exit" and leave root, then try to get in again, in order to see the bug.
jim@jim-desktop:~$ sudo su
[sudo] password for jim:
root@jim-
bash: blah: command not found
root@jim-
exit
jim@jim-desktop:~$ sudo su
root@jim-
jim@jim-desktop:~$ sudo su -
root@jim-desktop:~# jlogout
jim@jim-desktop:~$ sudo -k
jim@jim-desktop:~$ sudo su
[sudo] password for jim:
root@jim-
bash: blah: command not found
root@jim-
root@jim-
root@jim-desktop:~# exit
logout
root@jim-
exit
root@jim-
exit
jim@jim-desktop:~$ sudo su
root@jim-
jim@jim-desktop:~$ sudo su -
root@jim-desktop:~# jlogout
Changed in sudo: | |
status: | Unknown → In Progress |
Changed in sudo: | |
status: | Incomplete → Confirmed |
Changed in sudo: | |
status: | In Progress → Invalid |
I can confirm this. Status changed to confirmed.