When adding a user to a group is it necessary to add the text user name to /etc/group ?
The reason I am asking is because I see the user I added with the group number
but there is no mention of that user in /etc/group. I would assume please correct me if I am not correct that if I add a user with a group ID =617 and so long as there exists a #617 group
that user is part of that group.
The part that has me confused is - Is it true you must first esentailly become the group to use the permisions of that group
e.g in /etc/group
I add a new user named sam
in the adding I specify 617 as the group but it does not show in /etc/group
Will that work. Can user sam be in the Skiers group and if so can sam not show up in
the /etc/group file but because 617 is the created user default group still be in that group?
I believe I am correct here I just want confirmation that the only need you have of the
names within the group entries in /etc/group is if multiple groups are specified for a user
then and only then those entries become important
Could some one please confirm this?
Also when use newgrp myothergroup
do you lose your security state from say Skiers or are those security states appended
e.g if I am a member of both Skiers and Pilots and I newgrp Pilots do I still have Skiers rights?
e.g could modify skislopes.txt with owner root and group Skiers
asuming group write permisions exist for group Skiers??