如何调查当前登录的其他用户有哪些?

如何调查当前登录的其他用户有哪些?

自从过去几天以来,当我尝试关闭笔记本电脑时,我收到一条错误消息:

系统策略防止在其他用户登录时停止系统

此错误消息包括提示输入管理员密码。

我认为不应该有其他用户登录。

我怎样才能找出问题所在?

我尝试过的

$ w
 08:00:47 up  1:50,  2 users,  load average: 0,74, 0,95, 0,70
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
moose    tty8     :0               07:57    1:49m  4.88s  0.11s x-session-manager
moose    pts/0    :0.0             08:00    2.00s  0.11s  0.00s w


$ loginctl
   SESSION        UID USER             SEAT            
        c1        117 couchdb                          
        c2       1000 moose            seat0           

列出 2 个会话。

我不确定:这已经是问题了吗?

$ sudo shutdown -h now按预期工作。

我如何关闭电脑

通过点击System > Shut Down... > Shut Down

在此输入图像描述

系统信息

我有 Linux Mint MATE:

$ uname -a
Linux pc08 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/issue
Linux Mint 16 Petra \n \l

答案1

通过搜索我可以找到这个:

/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy

然后你应该找出你的消息的消息标签内的代码

<action id="org.freedesktop.consolekit.system.stop-multiple-users">
  <description>Stop the system when multiple users are logged in</description>
  <message>System policy prevents stopping the system when other users are logged in</message>
<defaults>
  <allow_inactive>no</allow_inactive>
  <allow_active>auth_admin_keep</allow_active>
</defaults>

然后更改

<allow_active> auth_admin_keep </allow_active>

<allow_active>yes</allow_active>

然后保存并重新启动。如果您在重新启动系统时遇到相同的问题,则执行相同的步骤,但重新启动代码。

<action id="org.freedesktop.consolekit.system.restart">

相关内容