[hardy] exit out of sudo -i doesnt really exit

Bug #191210 reported by Bastiaan Wakkie
4
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: sudo

Consider the following structure:
I work on my computer. Log in as (sudo -i) root and do some stuff and exit the root. I go for a coffee.
Now someone just has to type sudo -i to gain root access and screw up my computer. Is this a normal structure you would expect from sudo?
I would have expected to be prompt with a password again.

me@localhost:~$ sudo -i
[sudo] password for me:
root@localhost:~# exit
logout
me@localhost:~$ date
Tue Feb 12 10:22:17 CET 2008
me@localhost:~$ sudo -i
root@localhost:~# date
Tue Feb 12 10:22:39 CET 2008
root@localhost:~# exit
logout
me@localhost:~$ date
Tue Feb 12 10:22:44 CET 2008
me@localhost:~$ sudo -i
root@localhost:~#

Revision history for this message
Andrea Gasparini (gaspa) wrote :

Sudo timeout in wich debian/ubuntu systems doesn't ask for password is 15minutes, if i remember well.
In any case, you could invalidate the last password given by "sudo -k"

[501]gaspa@saturnino:~$ sudo -i
[sudo] password for gaspa:
root@saturnino:~# exit
[502]gaspa@saturnino:~$ sudo -k
[503]gaspa@saturnino:~$ sudo -i
[sudo] password for gaspa:
root@saturnino:~#

Andrea Gasparini (gaspa)
Changed in sudo:
status: New → Invalid
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.