Public bug reported:

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://ubuntu.mirror.frontiernet.net hardy/main Packages
        100 /var/lib/dpkg/status

sudo:
  Installed: 1.6.9p10-1ubuntu3
  Candidate: 1.6.9p10-1ubuntu3
  Version table:
 *** 1.6.9p10-1ubuntu3 0
        500 http://ubuntu.mirror.frontiernet.net hardy/main Packages
        100 /var/lib/dpkg/status

Here's how to duplicate the bug:
-Open a gnome terminal from Applications->Accessories->Terminal-
-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.

[EMAIL PROTECTED]:~$ sudo su
[sudo] password for jim: 
[EMAIL PROTECTED]:/home/jim# blah
bash: blah: command not found
[EMAIL PROTECTED]:/home/jim# exit
exit
[EMAIL PROTECTED]:~$ sudo su
[EMAIL PROTECTED]:/home/jim# jexit
[EMAIL PROTECTED]:~$ sudo su -
[EMAIL PROTECTED]:~# jlogout
[EMAIL PROTECTED]:~$ sudo -k
[EMAIL PROTECTED]:~$ sudo su
[sudo] password for jim: 
[EMAIL PROTECTED]:/home/jim# blah
bash: blah: command not found
[EMAIL PROTECTED]:/home/jim# sudo su
[EMAIL PROTECTED]:/home/jim# sudo su -
[EMAIL PROTECTED]:~# exit
logout
[EMAIL PROTECTED]:/home/jim# exit
exit
[EMAIL PROTECTED]:/home/jim# exit
exit
[EMAIL PROTECTED]:~$ sudo su
[EMAIL PROTECTED]:/home/jim# jexit
[EMAIL PROTECTED]:~$ sudo su -
[EMAIL PROTECTED]:~# jlogout

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New

-- 
after sudo su (su -), gnome-terminal [or a virtual terminal "-bash"] "exit"s 
("logout"s) with any single keypress
https://bugs.launchpad.net/bugs/224802
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to