[KDE/Mac] KDE4 and D-BUS

Julian Mehnle julian at mehnle.net
Sat Feb 7 15:21:59 CET 2009


O wrote:
> If you can figure out how to get sudo to run commands as the local
> user, I can figure out the rest.
> Till then, read a little, learn a lot :-)

`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
|
|       [...]

Try it:

  $ whoami
  julian
  $ sudo printenv | grep julian
  MAIL=/var/mail/julian
  HOME=/home/julian
  SUDO_USER=julian

-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/babd3301/attachment.sig 


More information about the kde-mac mailing list