What to do to add a secondary user group?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > What to do to add a secondary user group?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    What to do to add a secondary user group?  
qazmlp


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-04 10: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.





[ Post a follow-up to this message ]



    Re: What to do to add a secondary user group?  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-04 10: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.





[ Post a follow-up to this message ]



    Re: What to do to add a secondary user group?  
Jens.Toerring@physik.fu-berlin.de


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-19-04 12:48 PM

In comp.unix.programmer Pascal Bourguignon <spam@mouse-potato.com> wrote:
> qazmlp1209@rediffmail.com (qazmlp) writes:
[vbcol=seagreen] 
[vbcol=seagreen]
> You understand and assume correctly.
> The user have to login again though to get the new groups taken into account.[/vbc
ol]

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:13 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register