Execution of shell instruction in Portfile

Jordan K. Hubbard jkh at apple.com
Sun Oct 2 22:24:31 PDT 2011


On Oct 2, 2011, at 6:40 AM, 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.

That sounds like an orthogonal problem (some sort of ACL list of users for kdevelop to query) to the original query, which was how to drop privs.  Wouldn't the dropPrivileges function from portutil.tcl be the appropriate thing to do in this case?

- Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20111002/5e25517e/attachment.html>


More information about the macports-dev mailing list