|
Home > Archive > Unix Programming > August 2004 > What to do to add a secondary user group?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
What to do to add a secondary user group?
|
|
| qazmlp 2004-08-18, 5:57 pm |
| ---------------------------------------------------
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.
| |
| Pascal Bourguignon 2004-08-18, 5:57 pm |
| qazmlp1209@rediffmail.com (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__ http://www.informatimago.com/
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.
| |
| Jens.Toerring@physik.fu-berlin.de 2004-08-19, 7:48 am |
| In comp.unix.programmer Pascal Bourguignon <spam@mouse-potato.com> wrote:
> qazmlp1209@rediffmail.com (qazmlp) writes:
[vbcol=seagreen]
> 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 ___ Jens.Toerring@physik.fu-berlin.de
\__________________________ http://www.toerring.de
|
|
|
|
|