#useradd -g user user1
#useradd -G user user1
两条命令有什么区别????
急
在线等待最佳答案....
文章评论
共有 5 条评论
nanbei1201 于 2007-07-12 13:15:23发表:
引用:
原帖由 lonelyair 于 2007-7-12 11:00 发表
-g, --gid GROUP
The group name or number of the user’s initial login group. The
group name must exist. A group number must refer to an already
existing gr ...
开源排长,能不能给译成CHINESE,thinks every much..
唐军 于 2007-07-12 11:23:41发表:
第一个命令应该是 创建一个新用户并添加到某一个组。
第二个命令应该是 创建一个新用户并添加到某几个组,组与组之间用逗号隔开。
个人理解,请勿人生攻击,谢谢。
lonelyair 于 2007-07-12 11:00:53发表:
-g, --gid GROUP
The group name or number of the user’s initial login group. The
group name must exist. A group number must refer to an already
existing group. The default group number is 1 or whatever is
specified in /etc/default/useradd.
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
A list of supplementary groups which the user is also a member of.
Each group is separated from the next by a comma, with no
intervening whitespace. The groups are subject to the same
restrictions as the group given with the -g option. The default is
for the user to belong only to the initial group.
nanbei1201 于 2007-07-12 13:15:23发表:
开源排长,能不能给译成CHINESE,thinks every much..
唐军 于 2007-07-12 11:23:41发表:
第一个命令应该是 创建一个新用户并添加到某一个组。
第二个命令应该是 创建一个新用户并添加到某几个组,组与组之间用逗号隔开。
个人理解,请勿人生攻击,谢谢。
lonelyair 于 2007-07-12 11:00:53发表:
-g, --gid GROUP
The group name or number of the user’s initial login group. The
group name must exist. A group number must refer to an already
existing group. The default group number is 1 or whatever is
specified in /etc/default/useradd.
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
A list of supplementary groups which the user is also a member of.
Each group is separated from the next by a comma, with no
intervening whitespace. The groups are subject to the same
restrictions as the group given with the -g option. The default is
for the user to belong only to the initial group.
nanbei1201 于 2007-07-12 10:56:43发表:
怎么没有高手来指点迷津.....
Enbrain 于 2007-07-12 10:17:49发表:
不懂,不过输出来的信息肯定不一样,这是二个不同的指令,在linux中是讲究大小写的