Execution of shell instruction in Portfile

Ryan Schmidt ryandesign at macports.org
Sun Oct 2 07:38:00 PDT 2011


On Oct 2, 2011, at 08:40, Joshua Root wrote:

> You can certainly change users with su or sudo as part of a shell
> command you run with system or exec, but the real problem is knowing
> which user you want to run the command as. There could be more than one
> user that wants to use kdevelop on the machine, and the user who ran the
> port install might not even be one of them.

Also, you don't know whether the user has installed MacPorts as root or as another user; if the latter, you can't switch users.


More information about the macports-dev mailing list