[KDE/Mac] KDE4 and D-BUS
Julian Mehnle
julian at mehnle.net
Sat Feb 7 16:06:16 CET 2009
O wrote:
> On Sat, Feb 7, 2009 at 9:21 AM, Julian Mehnle <julian at 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`.
-Julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-mac/attachments/20090207/fb43c10d/attachment.sig
More information about the kde-mac
mailing list