0
  1. If I'm on a desktop 22.04 system, and open a terminal, who, w, and last -f /var/run/utmp all report that nobody is logged in.
  2. If I sudo those 3 commands they all report that I'm logged in.
  3. If I ssh to a remote 22.04 system, these 3 commands correctly report anyone connected over ssh, whether or not the commands are sudo'ed.

So what's the story here? There's nothing in the man pages about this, and man who unhelpfully states that "The who utility shall list various pieces of information about accessible users. The domain of accessibility is implementation-defined."

QF0
  • 311

0 Answers0