On Thu, May 02, 2019 at 04:29:20AM +0000, Adam Steen wrote:
>
> Hi
> 
> In a shell script invoked by doas, is it possible to find which user
> invoke the script? my search a the moment has come up empty.
> 
> Cheers Adam
> 

Hi Adam,


Nowadays, I think the POSIX way is considered to be id(1) with
appropriate args: 

id -nur

(Untested)


Regards,

-- 

Frank

https://woodcruft.co.uk/

Reply via email to