linux删除用户账户_如何查看Linux用户帐户属于哪个组

linux删除用户账户

linux删除用户账户

Groups help define the permissions and access your Linux user account has to files, folders, settings, and more. Finding out the groups to which a user account belongs helps give you a better understanding of that user’s access (and troubleshoot when things don’t work right).

组可以帮助定义权限,并访问Linux用户帐户对文件,文件夹,设置等的访问权限。 查找用户帐户所属的组有助于您更好地了解该用户的访问权限(并在无法正常运行时进行故障排除)。

Note: We’re using Ubuntu for our examples here, but this command works just the same on most flavors of Linux.

注意:我们在这里使用Ubuntu作为示例,但是此命令在大多数Linux版本上都相同。

Start by opening up your Terminal. At the prompt, type the following command, and then hit Enter:

首先打开您的终端。 在提示符下,键入以下命令,然后按Enter:

groups

Just using the groups command by itself like that shows you the groups to which the currently logged in user belongs.

仅使用groups命令本身就可以向您显示当前登录用户所属的组。

You can also add a username after the groups command if you’re investigating group membership for a different account. Just use the syntax:

如果要调查其他帐户的组成员身份,也可以在groups命令后添加用户名。 只需使用以下语法:

groups <username>

Yes, it’s a super simple process, but it’s also a super helpful one. Of course, you can use the groups command itself for more than just checking membership. For example, you can also use it to add users to groups.

是的,这是一个非常简单的过程,但是它也是一个非常有用的过程。 当然,您可以使用groups命令本身,而不仅仅是检查成员资格。 例如,您也可以使用它将用户添加到groups

翻译自: https://www.howtogeek.com/howto/ubuntu/see-which-groups-your-linux-user-belongs-to/

linux删除用户账户

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值