4 blocked updates
Muzer
muzerakascooby at gmail.com
Sat Jun 6 08:29:50 UTC 2009
Nils Kassube wrote:
> Muzer wrote:
>
>> I can't remember any examples unfortunately, but I have had apps that
>> deny me access to certain files in my home directory if I ever load
>> it with sudo rather than kdesudo.
>>
>
> I don't think there are apps which deny you access if you use sudo but
> it is much more sinister. You start a GUI program for the first time
> ever and you start it with sudo. The program writes it's config files to
> "/home/$USER/.someconfigpath/configfile". Some time later you start the
> same DUI program without sudo and it doesn't start because the config
> file "/home/$USER/.someconfigpath/configfile" is now owned by root and
> isn't accessible to the user.
>
That's what I meant, I just couldn't figure out how to word it :)
> If you want to see the difference between sudo and kdesudo, use these
> commands:
>
> sudo bash -c set >set1.txt
> kdesudo "bash -c set" >set2.txt
> diff -u set1.txt set2.txt >diff.txt
> kate diff.txt
>
> That will show that sudo preserves the $HOME of the user while kdesudo
> sets $HOME to the correct home directory for root which is "/root".
>
>
> Nils
>
>
>
>
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CM/IT d>++ s+:- a---- C+++ UL+++>++++ P+>+++ L+++>+++++ E---->--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y
------END GEEK CODE BLOCK------
More information about the kubuntu-users
mailing list