新建组

groupadd
-g, --gid GID
The numerical value of the group′s ID. This value must be unique, unless the -o option is used. The value
must be non-negative. The default is to use the smallest ID value greater than 999 and greater than every
other group. Values between 0 and 999 are typically reserved for system accounts.
eg:
[root@i175 ~]# cat /etc/group|grep 999
db2iadm1:x:999:
[root@i175 ~]# usermod -a -G db2iadm1(附加组) db2inst1(login)
[root@i175 ~]# cat /etc/group|grep 999
db2iadm1:x:999:db2inst1


1.
参考:
db2inst1:x:1004:999::/home/db2inst1:/bin/bash
db120 ~ # cat /etc/group|grep 999
db2iadm1:x:999:db2inst1
执行:
[root@i175 ~]# groupadd -g 999 db2iadm1
[root@i175 ~]# usermod -u 1004 -g 999 db2inst1
2.
memcached:x:102:2:added by portage for memcached:/dev/null:/sbin/nologin
nagios:x:103:119:added by portage for nagios-plugins:/var/nagios/home:/bin/bash
s212 ~ # cat /etc/group|grep 120
nginx:x:120:
s212 ~ # tail /etc/group|grep 2 ?没有找到???
sshd:x:22:
ntp:x:123:
ssmtp:x:122:
crontab:x:121:
nginx:x:120:

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值