[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-mac
Subject: Re: [KDE/Mac] KDE4 and D-BUS
From: O <illogical1 () gmail ! com>
Date: 2009-02-07 18:28:31
Message-ID: 797cc39c0902071028q1bc738f4ofcb9c0a5c3da9764 () mail ! gmail ! com
[Download RAW message or body]
On Sat, Feb 7, 2009 at 10:06 AM, Julian Mehnle <julian@mehnle.net> wrote:
> O wrote:
>> On Sat, Feb 7, 2009 at 9:21 AM, Julian Mehnle <julian@mehnle.net> wrote:
>> > `man sudo`:
>> > | ENVIRONMENT
>> > | sudo utilizes the following environment variables:
>> > |
>> > | [...]
>> > |
>> > | SUDO_USER Set to the login of the user who invoked sudo
>> > |
>> > | SUDO_UID Set to the uid of the user who invoked sudo
>> > |
>> > | SUDO_GID Set to the gid of the user who invoked sudo
>> > |
>> > | [...]
>>
>> O wrote:
>> > > If you can figure out how to get sudo to run commands as the local
>> > > user, I can figure out the rest.
>
> Oh, come on!
>
> $ sudo -s # AKA `sudo port ...`
> # su -f $SUDO_USER -c whoami
> julian
> # sudo -H -u $SUDO_USER whoami
> julian
>
> But if "the local user"'s home dir needs to be manipulated, then probably
> _every_ local user's home dir needs to be, not just that of the user who
> ran `port`.
Now try that in your portfile and see what happens.
(hint: jonas' reply above is actually the "correct" answer)
>
> -Julian
>
> _______________________________________________
> kde-mac@kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
>
_______________________________________________
kde-mac@kde.org
List Information: https://mail.kde.org/mailman/listinfo/kde-mac
KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic