Your message dated Fri, 19 Jul 2024 17:41:02 +1000
with message-id 
<caly8cw6-f_pn5pwtb2rnkz8srzcfosfimtq531wfuvox7hx...@mail.gmail.com>
and subject line Re: Bug#935106: /bin/ps: /bin/ps: difference between 'ps aux' 
and 'ps -aux'
has caused the Debian Bug report #935106,
regarding /bin/ps: /bin/ps: difference between 'ps aux' and 'ps -aux'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
935106: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935106
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: procps
Version: 2:3.3.15-2
Severity: minor
File: /bin/ps

Dear Maintainer,


the 'man ps' page says


*********************
Note that "ps -aux" is distinct from "ps aux".  The POSIX and UNIX
standards require that "ps -aux" print all processes owned
by a user
named "x", as well as printing all processes that
would be selected by
the -a option.  If the user named "x" does not
exist, this ps may
interpret the command as "ps aux"
instead and print a warning.  This
behavior is intended to aid in
transitioning old scripts and
habits.
It is fragile, subject to
change, and thus should
not be relied upon.
***********************

I created a user with the name 'x'. It didn't make any difference
between 'ps aux' and 'ps -aux'.

Did the behavior change? Is the man page out of date? Or did I
misinterpret the behavior.

Greetings
Tobias 
-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages procps depends on:
ii  init-system-helpers  1.56+nmu1
ii  libc6                2.28-10
ii  libncurses6          6.1+20181013-2
ii  libncursesw6         6.1+20181013-2
ii  libprocps7           2:3.3.15-2
ii  libtinfo6            6.1+20181013-2
ii  lsb-base             10.2019051400

Versions of packages procps recommends:
ii  psmisc  23.2-1

procps suggests no packages.

-- Configuration Files:
/etc/sysctl.conf changed [not included]

-- no debconf information

--- End Message ---
--- Begin Message ---
On Tue, 20 Aug 2019 at 00:33, tkoeck <[email protected]> wrote:
> I created a user with the name 'x'. It didn't make any difference
> between 'ps aux' and 'ps -aux'.
>
> Did the behavior change? Is the man page out of date? Or did I
> misinterpret the behavior.
No, it's still an issue, at least in procps 4.0.4

$ id x
uid=1004(x) gid=1004(x) groups=1004(x),100(users)
$ ps aux | wc
    378    4685   39719
$ ps -aux | wc
      8      32     251
$ ps -a | wc
      8      32     251
(delete user)
$ id x
id: ‘x’: no such user
$ ps -aux | wc
    378    4685   39714

So with user 'x' present, ps interprets it: all processes with a
terminal PLUS all processes run with user x.
User x was running no processes, and there were 8 with a terminal.

That's what the manpage is warning about. I'm not sure why you didn't see this.

 - Craig

--- End Message ---

Reply via email to