On 05/22/2012 08:33 PM, Nick Anderson wrote: > On 05/22/2012 08:26 PM, Ted Zlatanov wrote: >> Hmm. Can cfengine find out the current UID? If not, the default will >> be hard to do, unless I use two contain bodies, one with and one without >> the user specified. >> >> I can't find such getuid() functionality in the manual. It doesn't make >> sense in Windows, but it's kind of useful on Unix. > > Well thats pretty much exactly why I made it a todo instead of a todone :P > > I couldnt see how to default it without forking out at least. > > When I run verbose output and a command is run without specifying a > container I see user and group get set to -1 ? Maybe default to that? > > cf3> -> Executing '/bin/echo hi' ...(timeout=-678,owner=-1,group=-1)
Nope that didnt work, The next thing is two seperate command promises, one with a container, one without classed on the presance of a variable being defined. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine