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删除用户账户