Description of problem: "sudo -i" doesn't set $PATH correctly compared to "sudo su -". (Sorry if this is not sudo related but something else. For me as a user it is sudo. Please reassign if i picked a wrong component.) Version-Release number of selected component (if applicable): sudo-1.6.8p8-2.4
Could you send some steps to reproduce this problem.
$ sudo su - Password: # echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin $ sudo -i # echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/jval/bin
It seems problem is that "$ sudo -i" doesn't reset PATH variable. I have asked upstream, if it is desired behavior, but I haven't received any answer yet. $ echo $PATH /usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/usr/games:/home/peter/bin:/usr/sbin/:/sbin $ export PATH="$PATH:/foo" $ sudo -i Password: # echo $PATH /usr/kerberos/sbin:/usr/local/sbin:/usr/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin:/usr/games:/home/peter/bin:/usr/sbin/:/sbin:/foo:/root/bin
This report targets the FC3 or FC4 products, which have now been EOL'd. Could you please check that it still applies to a current Fedora release, and either update the target product or close it ? Thanks.
The behaviour has changed. I've tested this in FC5. Now "sudo -i" adds all root user related paths to $PATH. I assume that's how this command is supposed to work. So closing the bug...