问题描述
如果我的计算机上登录了多个人,则在关闭计算机时,Ubuntu需要超级用户身份验证。我怎样才能让任何用户在不被要求输入密码的情况下关闭计算机?
最佳解决思路
您不需要解决方法,只需更改策略以允许您关闭而无需作为管理员进行身份验证以关闭并在多个用户登录时重新启动。
使用您喜欢的文本编辑器编辑文件/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy。您将需要root权限。
在其他人登录时更改与关机相关的部分
Stop the system when multiple users are logged in
System policy prevents stopping the system when other users are logged in
no
auth_admin_keep
至
Stop the system when multiple users are logged in
System policy prevents stopping the system when other users are logged in
no
yes
和其他人登录时重启的部分
Restart the system when multiple users are logged in
System policy prevents restarting the system when other users are logged in
no
auth_admin_keep
至
Restart the system when multiple users are logged in
Syst