On Tue, Jan 17, 2023 at 03:02:51PM +0100, Omar Polo wrote:
> this seems a bit weak, but at the moment I don't think we can do
> better:
> 
>       % pgrep -lf gotd
>       46576 gotd: listen
>       4424 gotd: parent
> 
> (actually don't know if it's really 'weak', usually pexp matches the
> full path to the executable, this pexp allow for any user on the
> machine to run a process matching it.)

Not with the binary installed from the package.
You need to be root to start gotd, unless you have modified the source code
to allow otherwise.

I agree that it might be better to show the absolute path in argv/pgrep.
However, /etc/rc.d/sshd also uses a non-abspath pexp so I doubt this problem
is specific to this port.

Reply via email to