Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: mention that ps -e doesn't show other users' env
To:
tech@openbsd.org
Date:
Mon, 23 Sep 2024 08:16:07 -0600

Download raw body.

Thread
There are other things which cannot be shown, for obvious reason.

I'm not sure it needs to be said, at all.


Kirill Miazine <km@krot.org> wrote:

> Let's document that ps -e doesn't show other users' env for normal
> users.
> 
> Wording similar to ps(1) in NetBSD in
> http://cvsweb.netbsd.org/bsdweb.cgi/src/bin/ps/ps.1?rev=1.32&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
> 
> Index: bin/ps/ps.1
> ===================================================================
> RCS file: /cvs/src/bin/ps/ps.1,v
> retrieving revision 1.137
> diff -u -p -r1.137 ps.1
> --- bin/ps/ps.1	21 Aug 2024 03:07:45 -0000	1.137
> +++ bin/ps/ps.1	23 Sep 2024 09:50:26 -0000
> @@ -85,6 +85,8 @@ scripts will show as
>  .Dq sh .
>  .It Fl e
>  Display the environment as well.
> +The environment for other users' processes can only be displayed by the
> +super-user.
>  .It Fl f
>  Arrange processes into a tree.
>  Each command is ordered and prefixed with indentation text
>