What to do to add a secondary user group?

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default What to do to add a secondary user group?

    ---------------------------------------------------
    Format of /etc/group:
    <Group name>:<Encrypted Password>:<Numerical Group ID>:<Individual
    user names that are part of the group:'Group name'>

    Format of /etc/passwd:
    <userName> : <Encrypted Password> : <Numerical user ID> : <Numerical
    Group ID> : <Comment Field> : <Initial Working Directory> : <Initial
    shell>
    ---------------------------------------------------

    As I understand, it is necessary to adapt only /etc/group to add a
    secondary user group to a user.
    For any reason, is it required to change /etc/passwd also? I assume
    NO.
    In my understanding, we mention only the Primary group Id in
    /etc/passwd.
    qazmlp Guest

  2. Similar Questions and Discussions

    1. Verify User Group from ASP.NET
      Hello, I'm a little uncertain about what I'm asking so please be gentle. I (think) I want to be able to identify and authenticate the currently...
    2. NDS user and group query
      Greetings! I would like to create a web page that will allow users to look at my Novell NDS tree groups and see what users are members, and look...
    3. Specify more than 1 supplementary group for a user ??
      Whenever I do: usermod -G groupname username ..... any existing supplementary group of username, as shown from /etc/group, gets removed and...
    4. PHP User Group forming in Louisville, KY
      Hello, I've been attempting for some time now to put together a PHP user group in Louisville, KY USA. If you're interested in this idea, please...
    5. how to add user group member
      Hi folks, I have problem when add user into group member with admintool it has been limited up to hundred...user (don't know how many) when i add...
  3. #2

    Default Re: What to do to add a secondary user group?

    [email]qazmlp1209@rediffmail.com[/email] (qazmlp) writes:
    > ---------------------------------------------------
    > Format of /etc/group:
    > <Group name>:<Encrypted Password>:<Numerical Group ID>:<Individual
    > user names that are part of the group:'Group name'>
    >
    > Format of /etc/passwd:
    > <userName> : <Encrypted Password> : <Numerical user ID> : <Numerical
    > Group ID> : <Comment Field> : <Initial Working Directory> : <Initial
    > shell>
    > ---------------------------------------------------
    >
    > As I understand, it is necessary to adapt only /etc/group to add a
    > secondary user group to a user.
    > For any reason, is it required to change /etc/passwd also?
    > I assume NO.
    > In my understanding, we mention only the Primary group Id in
    > /etc/passwd.
    You understand and assume correctly.
    The user have to login again though to get the new groups taken into account.

    --
    __Pascal Bourguignon__ [url]http://www.informatimago.com/[/url]

    Our enemies are innovative and resourceful, and so are we. They never
    stop thinking about new ways to harm our country and our people, and
    neither do we.
    Pascal Bourguignon Guest

  4. #3

    Default Re: What to do to add a secondary user group?

    In comp.unix.programmer Pascal Bourguignon <spam@mouse-potato.com> wrote:
    > [email]qazmlp1209@rediffmail.com[/email] (qazmlp) writes:
    >> ---------------------------------------------------
    >> Format of /etc/group:
    >> <Group name>:<Encrypted Password>:<Numerical Group ID>:<Individual
    >> user names that are part of the group:'Group name'>
    >>
    >> Format of /etc/passwd:
    >> <userName> : <Encrypted Password> : <Numerical user ID> : <Numerical
    >> Group ID> : <Comment Field> : <Initial Working Directory> : <Initial
    >> shell>
    >> ---------------------------------------------------
    >>
    >> As I understand, it is necessary to adapt only /etc/group to add a
    >> secondary user group to a user.
    >> For any reason, is it required to change /etc/passwd also?
    >> I assume NO.
    >> In my understanding, we mention only the Primary group Id in
    >> /etc/passwd.
    > You understand and assume correctly.
    > The user have to login again though to get the new groups taken into account.
    And there can also be a gshadow file that has the same function as
    /etc/shadow for /etc/passwd, which might also require tweaking...

    Regards, Jens
    --
    \ Jens Thoms Toerring ___ [email]Jens.Toerring@physik.fu-berlin.de[/email]
    \__________________________ [url]http://www.toerring.de[/url]
    Jens.Toerring@physik.fu-berlin.de Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139