Professional Web Applications Themes

What to do to add a secondary user group? - Linux / Unix Administration

--------------------------------------------------- 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....

  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. #2

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

    [email]qazmlp1209rediffmail.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

  3. #3

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

    In comp.unix.programmer Pascal Bourguignon <spammouse-potato.com> wrote:
    > [email]qazmlp1209rediffmail.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.Toerringphysik.fu-berlin.de[/email]
    \__________________________ [url]http://www.toerring.de[/url]
    Jens.Toerring@physik.fu-berlin.de Guest

Similar Threads

  1. Verify User Group from ASP.NET
    By in forum ASP.NET Security
    Replies: 4
    Last Post: June 25th, 02:01 PM
  2. NDS user and group query
    By Michael Weber in forum PERL Beginners
    Replies: 2
    Last Post: February 13th, 10:48 PM
  3. Change user's group in ASP.NET
    By Memi Lavi in forum ASP.NET Security
    Replies: 3
    Last Post: January 29th, 08:54 PM
  4. Specify more than 1 supplementary group for a user ??
    By noone in forum Linux / Unix Administration
    Replies: 2
    Last Post: January 7th, 07:11 AM
  5. how to add user group member
    By Kristianto in forum Sun Solaris
    Replies: 1
    Last Post: June 26th, 11:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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