Wednesday, May 01, 2019

Re: User who invoke doas

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
>

Investigate the owner of the shell's parent process:

ps -p $PPID -o user=

--
Kusalananda
Sweden

No comments:

Post a Comment