添加组 :easthome gid 5000
[root@localhost ~]# groupadd -g 5000 easthome
添加用户 tom uid =5000 属于easthome组 描述为hello 家目录在/opt下 shell为tcsh
[root@localhost ~]# useradd -u 5000 -g easthome -s hello -d /opt/tom -s /bin/bash tom
添加组 :easthome gid 5000
[root@localhost ~]# groupadd -g 5000 easthome
添加用户 tom uid =5000 属于easthome组 描述为hello 家目录在/opt下 shell为tcsh
[root@localhost ~]# useradd -u 5000 -g easthome -s hello -d /opt/tom -s /bin/bash tom