红联Linux门户
Linux帮助

菜鸟求学:正在看一个Samba的服务器视频,有条命令不清楚..

发布时间:2009-04-12 15:39:36来源:红联作者:120176286
groupadd -g 3000 samba
(添加组) (指定)

3000是不是组名

samba是不是帐户?

把samba加入到3000组里?
文章评论

共有 4 条评论

  1. 120176286 于 2009-04-13 20:47:45发表:

    y谢谢两位..知道了

  2. hantu 于 2009-04-12 23:31:39发表:

    3000 是组ID,samba是组名

  3. marco.chan 于 2009-04-12 19:58:26发表:

    记得常找“男人”!
    man groupadd
    groupadd就是增加一个群组。

  4. 相思爱文 于 2009-04-12 19:36:03发表:

    引用:
    $ /usr/sbin/groupadd --help
    Usage: groupadd [options] GROUP

    Options:
    -f, --force force exit with success status if the
    specified group already exists
    -g, --gid GID use GID for the new group
    -h, --help display this help message and exit
    -K, --key KEY=VALUE overrides /etc/login.defs defaults
    -o, --non-unique allow create group with duplicate
    (non-unique) GID
    -p, --password PASSWORD use encrypted password for the new group
    -r, --system create a system account