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) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine