The -10/01/-28163 20:59, no-re...@cfengine.com wrote :
> 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,23966#msg-23966
>
> Mike, you are correct, this works fine.
&g
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,23966#msg-23966
Mike, you are correct, this works fine.
___
Help-cfengine mailing list
Help-cfengine
Forum: CFEngine Help
Subject: Re: Finding the current user running cf-agent
Author: mikesphar
Link to topic: https://cfengine.com/forum/read.php?3,23960,23964#msg-23964
Maybe I'm missing something, but shouldn't something like this work?
vars:
"env_user" string
Forum: CFEngine Help
Subject: Re: Finding the current user running cf-agent
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,23960,23963#msg-23963
You could check $(sys.workdir); if it's /var/cfengine, you're root. Otherwise,
it's .cfagent under the home
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:
"c
I am looking for a way to get the user currently running cf-agent, but I
can not find any sys variable on function related to this in the
documentation.
Is there a "standard" way to get it ?
Thanks in advance,
--
==
Matthieu CERDA