On Thu, 10 Mar 2011 22:35:31 +0100 (CET) mark wrote: n> Please don't embed su in shell commands, use the contain method
n> contain => setuid("uid") n> to do this. As always, if you look carefully, you will find the way to use the features in a secure and efficient manner. Is there a way to simulate "su -" to clear the environment or clear individual entries? Can the environment be set by cfengine (I know I can prepend "X=y" to the command line but then it has to be escaped and quoted)? Can an environment entry be incremented (e.g. add "/x/y/bin" to the PATH)? I didn't see a way to do any of this in the manual. There's just the getenv() function. Thanks Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine