I am continuously seeing root in the output of the w command on a virtual machine hosted on the cloud. I have restarted the machine several times and even tried sending CtrlAltDel from the OpenNebula control panel, but I still see this when I type w:

USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     ttyS0    -                12:33   21.00s  0.03s  0.02s -bash
paropunam  pts/0    IP_REMOVED    12:59    0.00s  0.09s  0.03s w

Why is that happening and how can I determine the root of the problem? Is this even a 'problem'?

I am using Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-30-generic x86_64).

UPDATE (according to comment)

I get this from ps:

   PID TTY          TIME CMD
  3992 pts/0    00:00:00 bash

And then ps -Flww -p 3992 gives me this:

0 S paropunam    3992   3940  0  80   0 -  5790 wait    5172  88 12:33 pts/0    00:00:00 -bash

closed as unclear what you're asking by Rui F Ribeiro, msp9011, schily, Shadur, slm Aug 10 '18 at 12:52

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Use ps to associate the tty to a process.This will give you more detail in investigating the issue. – Raman Sailopal Aug 9 '18 at 13:22
  • You really should explain in the question whether that is the entirety of the output, and what terminal you are logged on to in order to run that w command. – JdeBP Aug 9 '18 at 13:28
  • Running the command tty will give you the tty your current session is using. – Raman Sailopal Aug 9 '18 at 13:34
  • I know which tty I am using, it's pts/0 and it shows it even in the w command. – paropunam Aug 9 '18 at 13:35
  • Use ps -ft ttyS0 to see what processes are running on /dev/ttyS0. It may be a stale entry in the file /var/run/utmp which is what who and w use to show who's logged in. – wurtel Aug 10 '18 at 10:43

Browse other questions tagged or ask your own question.