[hardy] exit out of sudo -i doesnt really exit
Bug #191210 reported by
Bastiaan Wakkie
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:~#
Changed in sudo: | |
status: | New → Invalid |
To post a comment you must log in.
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 saturnino: ~$ sudo -k saturnino: ~$ sudo -i
[sudo] password for gaspa:
root@saturnino:~# exit
[502]gaspa@
[503]gaspa@
[sudo] password for gaspa:
root@saturnino:~#