tty1 用户始终显示 root 登录

tty1 用户始终显示 root 登录

我有两台 Ubuntu 云服务器,我发现某些内容与另一台服务器不匹配,任何人都可以帮我找到什么是 tty1 以及为什么它显示 root 仍处于登录状态?

在此 server1 中,tty1 仍然登录但未显示,但它显示另一个 server2 仍然登录。

可以看到在tty1登录中没有显示任何IP地址。

root@server1:/home/ubuntu# last -a | grep -i still
ubuntu   pts/2        Sun Dec 25 08:09   still logged in    MYIPADDRESS
reboot   system boot  Wed Nov  9 21:06   still running      5.15.0-52-generic


root@server2:/etc/apt# last -a | grep -i still
ubuntu    pts/0        Sun Dec 25 07:01   still logged in    MYIPADDRESS
root     tty1         Sat Dec 10 18:22   still logged in
reboot   system boot  Sat Dec 10 18:16   still running      5.4.0-135-generic
reboot   system boot  Sun Sep 18 08:06   still running      5.4.0-125-generic
reboot   system boot  Sun Sep 18 05:10   still running      5.4.0-125-generic
reboot   system boot  Sat Sep 17 02:49   still running      5.4.0-125-generic
reboot   system boot  Thu Dec 24 08:44   still running      5.4.0-58-generic
reboot   system boot  Thu Dec 10 21:36   still running      5.4.0-26-generic

相关内容