Forum: CFEngine Help
Subject: Re: Finding the current user running cf-agent
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,23960,23961#msg-23961
Hi Matthieu,
I don't think there's a function or variable for this. You could use something
like this:
"cur_user" string => execresult("/usr/bin/id -un", "noshell");
But I guess the real question is: what are you trying to achieve?
Best regards,
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine