Adding mygroup

Discussion in 'Getting Started' started by abnormal11, Apr 14, 2013.

  1. abnormal11

    abnormal11 New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,
    I am new to linux and am taking a class, but I am to add mygroup in red hat and every time i use sudo/usr/sbin/groupadd mygroup I am denied. Have waited on instructor for 2 days any help would be appreciated.

    Thanks
    abnormal

  2. Nbiser

    Nbiser New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    In order to add a new group in Linux, you need to type the following as root
    Code:
    addgroup mygroup
    this should add a new group, be sure to note the group id (GID).
  3. dirk.digalow

    dirk.digalow New Member

    Messages:
    17
    Likes Received:
    9
    Trophy Points:
    3
    Your class is probably over. But there should be a space between sudo and /usr/sbin/groupadd. If you are the root user, then you don't need to use sudo. If you are doing this as a user, the user needs to have sudo access in the sudoers files.

Share This Page