Re: Consolehelper and sudo (was Re: Export)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bevan C. Bennett said:
> su works because you end up with root's environment variables (and
> path), thus avoiding consolehelper entirely.

No you don't:

[whooper@kenny whooper]$ su -c printenv | grep PATH
Password:
JAVA_PATH=/usr/java/j2re1.4.2_02
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin:/home/whooper/bin
[whooper@kenny whooper]$ sudo printenv | grep PATH
JAVA_PATH=/usr/java/j2re1.4.2_02
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin:/home/whooper/bin

[whooper@kenny whooper]$ su -c "which up2date"
Password:
/usr/bin/up2date
[whooper@kenny whooper]$ sudo which up2date
/usr/bin/up2date
[whooper@kenny whooper]$

I assume they use xauth differently and that is why one works and the
other doesn't.

--
William Hooper




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux