![]() Registered Member ![]()
|
Hi all,
I would like to know how can I set kdesudo environment PATH and LD_LIBRARY_PATH. Thank you. |
![]() Registered Member ![]()
|
What do you mean by kdesudo environment ?
jithin1987, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
I mean everything you see when you do:
kdesudo printenv |
![]() Administrator ![]()
|
I believe it follows the standard sudo configuration for this, as it simply provides a GUI for interacting with sudo.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Unfortunately, it doesn't have the same configuration, if you try sudo env, and then kdesudo env, you can see that i.e. PATH are not the same.
So my question is: where is the environment file for kdesudo? I tried /root/.profile , /root/.bashrc, /etc/environment, etc... but nothing. Maybe the only solution is using ldconfig instead of LD_LIBRARY_PATH, and launching my GUI application putting the complete address after kdesudo. |
![]() Administrator ![]()
|
Since kdesudo has root privilages, it is possible that it "cleans" the environment to protect the system aganist exploits by malicious users / software from crossing the user permissions barrier.
However, since kdesudo is a modified version of kdesu, I cannot confirm the above. You would need to ask the Kubuntu developer who created it.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]