On 05/22/2012 08:41 PM, Nick Anderson wrote: > https://cfengine.com/manuals/cf3-Reference#Function-getenv
So env contains USER, and with that we can get gid. "user" string => getenv("USER","20"); "no" int => getfields("$(user):.*","/etc/passwd",":","userdata"); "gid" string => "$(userdata[4])"; It fails to execute properly if run as non root since it still tries to change uid and gid for execution. so if its not root it will have to be run without a container. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine