How does users
define what users are logged in?
If I ssh
into a box twice, I see my username twice listed if I execute users
. However, if I create a new login shell via sudo su -
, I do not see root
listed as users. Same goes for any other user such as sudo su - user
. Of course, a non-login shell also doesn't show up in users
.