PATH not reset correctly on sudo -i

Bug #564311 reported by Chris Sykes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: sudo

running sudo -i should reset $PATH, to root's rather than using mine:

chris@sjoh2988:~$ sudo -i
root@sjoh2988:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
root@sjoh2988:~# exit
logout
chris@sjoh2988:~$ sudo -s
root@sjoh2988:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
root@sjoh2988:~# exit
exit
chris@sjoh2988:~$

cf: http://ubuntuforums.org/showpost.php?p=6188826&postcount=4

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: sudo 1.7.2p1-1ubuntu5
ProcVersionSignature: Ubuntu 2.6.32-21.31-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
Date: Fri Apr 16 01:09:37 2010
InstallationMedia: Kubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100225)
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: sudo
VisudoCheck: /etc/sudoers: parsed OK

Revision history for this message
Chris Sykes (jcgs) wrote :
Revision history for this message
dino99 (9d9) wrote :

outdated/deprecated version which has reached EOL does not get support

Changed in sudo (Ubuntu):
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.