[root@localhost data]# useradd agent # 新增用户agent,agent属组为agent
[root@localhost data]# useradd test # 新增用户test,test属组为test
[root@localhost scripts]# chmod +x test.sh # 增加执行权限
[root@localhost quantitative-manager_agent]# groupadd g_group # 添加g_group组
[root@localhost quantitative-manager_agent]# usermod -a -G g_group test # 将test用户加到g_group组
[test@localhost nescadmin]$ groups
test g_group