This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Set kdesudo environment

Tags: None
(comma "," separated)
lixo1
Registered Member
Posts
19
Karma
0
OS

Set kdesudo environment

Mon Nov 16, 2009 8:00 pm
Hi all,

I would like to know how can I set kdesudo environment PATH and LD_LIBRARY_PATH.
Thank you.
User avatar
jithin1987
Registered Member
Posts
135
Karma
0
OS

Re: Set kdesudo environment

Tue Nov 17, 2009 1:30 am
What do you mean by kdesudo environment ?


jithin1987, proud to be a member of KDE forums since 2008-Oct.
lixo1
Registered Member
Posts
19
Karma
0
OS

Re: Set kdesudo environment

Tue Nov 17, 2009 8:39 am
I mean everything you see when you do:
kdesudo printenv
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Set kdesudo environment

Wed Nov 18, 2009 8:57 am
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]
lixo1
Registered Member
Posts
19
Karma
0
OS

Re: Set kdesudo environment

Wed Nov 18, 2009 10:07 am
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.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Set kdesudo environment

Thu Nov 19, 2009 3:20 am
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]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]