凝思科技linux关机密码,如何关机不需要管理员密码?

问题描述

如果我的计算机上登录了多个人,则在关闭计算机时,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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值