| linux用户组管理方法,常用命令有groupadd , groupdel , gpasswd , groups , finger,linux用户组分为两类。 
	linux系统的一大块就是用户管理,管理用户的信息,这里介绍用户组。  
	linux用户组分为两类:  
	【基本操作】  
		[root@bogon srv]# groupadd --help   
		[root@bogon srv]# grep test /etc/group   useradd -g 组名 用户名 ----创建用户并将该用户加入到组中 
	修改用户组: 
	[root@bogon srv]# groupmod --help   Usage: groupmod [options] GROUP Options: -g, --gid GID change the group ID to GID -h, --help display this help message and exit -n, --new-name NEW_GROUP change the name to NEW_GROUP -o, --non-unique allow to use a duplicate (non-unique) GID -p, --password PASSWORD change the password to this (encrypted) PASSWORD [root@bogon srv]# groupmod -n ttest test [root@bogon srv]# grep test /etc/group ttest:x:508: 
	添加删除用户组:  
		[root@bogon srv]#  gpasswd --help   
		[root@bogon srv]# grep ttest /etc/group   groupdel 用户组名 ----删除用户组,该帐号必须存在且不能作为某个用户的私有组引用(不能删除私有组和不存在的组),如果该组中还有其他用户在使用,必须先删除组中的用户才能删除该组 
	查看用户组: 
	[root@bogon srv]# man groups   GROUPS(1) User Commands GROUPS(1) NAME groups - print the groups a user is in SYNOPSIS groups [OPTION]... [USERNAME]... DESCRIPTION Print group memberships for each USERNAME or, if no USERNAME is specified, for the current process (which may differ if the groups database has changed). 
	groups 用户名 ----查看用户属于哪个组:  
	[root@bogon srv]# groups spark   spark : spark [root@bogon srv]# gpasswd -a spark ttest Adding user spark to group ttest [root@bogon srv]# groups spark spark : spark ttest | 
