linux强制注销用户_如何在Linux中强制注销用户?

linux强制注销用户

linux强制注销用户

We have some servers to manage. There are some user access to our server. We want to them log off or kill their processes by terminating. How can be achieve this?

我们有一些服务器要管理。 用户可以访问我们的服务器。 我们想让他们注销或终止他们的进程。 如何才能做到这一点?

列出已登录的用户 (List Logged On Users)

We can logout other users forcibly like below. Keep in mind we need to be root to complete this command. First we will list currently logged in users with the who command. We can use w command alternatively to list users.

我们可以像下面这样强制注销其他用户。 请记住,我们需要以root用户身份才能完成此命令。 首先,我们将使用who命令列出当前登录的用户。 我们也可以使用w命令来列出用户。

$ who
List Logged On Users
List Logged On Users
列出已登录的用户

从GUI或桌面环境注销(Logout From GUI or Desktop Environment)

Different desktop environments provides GUI menus in order to logout from current session. In this example we will logout the user ismail from and XFCE desktop environment session. From right corner by clicking the user name we will list some menu which provides actions like Lock Screen , Suspend , Shutdown and Log Out . We can use Log Out button in order to logout from current user session.

不同的桌面环境提供GUI菜单,以便从当前会话注销。 在此示例中,我们将从XFCE桌面环境会话注销用户ismail 。 通过单击用户名从右上角,我们将列出一些菜单,该菜单提供诸如Lock ScreenSuspend

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值