View Issue Details

IDProjectCategoryView StatusLast Update
0007492CentOS-6sudopublic2014-08-11 11:44
Reporterginzel Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentosOS Version6,5
Product Version6.5 
Summary0007492: sudo -i does not set /usr/local/bin to path
Description"Interactive" sudo and "interactive" su sets different environments, especially the PATH.
Steps To Reproduce$sudo adduser test10
$sudo -i -u test10
$set >/tmp/test-sudo.set
$exit
$sudo -i
#su - test10
$set >/tmp/test-su.set
$diff /tmp/test-su.set /tmp/test-sudo.set

Additional Information$ diff /tmp/test-su.set /tmp/test-sudo.set
37c37
< PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
---
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
40c40
< PPID=12405
---
> PPID=12370
45a46
> QTDIR=/usr/lib64/qt-3.3
48a50,54
> SUDO_COMMAND=/bin/bash
> SUDO_GID=500
> SUDO_UID=500
> SUDO_USER=T912205
> SYSFONT=latarcyrheb-sun16
51a58
> USERNAME=test10
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-08-11 11:44 ginzel New Issue