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

Re: gksu: Couldn't set environment variable...



On Wed, 30 Nov 2011 17:00:16 +0700, Sthu Deus wrote:

> Thank You for Your time and answer, Camaleón:
> 
>>>>Also, try to run gksu as root user.
>>>>
>>>>(...)
>>> 
>>> Why? I can do that successfully even under normal, new user.
>>
>>Why not? We are just making tests to get more clues.
> 
> Because if a less privileged user can do it than it is OK to suppose the
> root user will do the same.

In this case is not a matter of privileges. It's a matter of 
configuration files that could have been messed up or set with the wrong 
perms. 

As root user is usually never called to run GUI based applications, 
root's configuration files use to be "clean" as if they have been 
installed from scratch. How I could say it? Root user is, in this regard, 
like a virgin user :-)

> [Skipped]
> 
>>>>ls -la | grep config
>>> 
>>> Here it is:
>>> 
>>> drwx------ 11 uname  uname   1024 Nov 25 00:33 .config
>>
>>Interesting...
>>
>>Mine is set to "drwxr-xr-r" and owner/group is my user. Check out the
>>perms of this folder for the user where it works and them compare.
> 
> Sorry, same effect. And I think it is logical - for user has full
> access.
> 
> Interesting another thing:
> 
> 1. under another (new user) it works.

Yes, and you can use this fact to compare the permissions for the 
configuration files for the user where it works and the other where 
doesn't.
> 
> 2. For the given user it works but not for these two app.s...

Look deeper inside at the "~/.config" folder and check out the 
permissions that hold the files of that two specific applications.

Greetings,

-- 
Camaleón


Reply to: