Off-Topic > Off-Topic - Tiny Core Lounge
linux question - What are the rules regarding user names in the "group" file?
mikshaw:
--- Quote ---When the "group" file does not contain any user name entries does that mean any user can be in any group?
--- End quote ---
As far as I know it means that no user is currently added to any group, so it's sort of the opposite of what you were asking.
--- Quote ---if user names are entered for a group does that mean only those user names can be associated with that group.
--- End quote ---
It means only those users are currently associated with that group.
--- Quote ---I wanted user nobody to be in group staff in addition to nogroup so I added it and user tc to the group file staff group entry
--- End quote ---
That's probably not a good idea. The user "nobody" is a special user made available to be very limited in what it can do, for use in things such as web servers to prevent remote access from obtaining control of things outside the server. Nobody probably shouldn't be allowed to do anything apart from accessing files allowed for "others" (the 4 in chmod 664, for example)
tobiaus:
--- Quote from: mikshaw on May 05, 2009, 12:21:23 AM ---Nobody probably shouldn't be allowed to do anything
--- End quote ---
hey that sounds like windows...
bigpcman:
--- Quote ---
--- Quote from: mikshaw on May 05, 2009, 12:21:23 AM ---
--- Quote ---When the "group" file does not contain any user name entries does that mean any user can be in any group?
--- End quote ---
As far as I know it means that no user is currently added to any group, so it's sort of the opposite of what you were asking.
--- End quote ---
--- End quote ---
If this is true then why does the default tc group file have no user entries?
root:x:0:
lp:x:7:lp
nogroup:x:65534:
staff:x:50:
Edit: Ok now I get it. The group file would include secondary user group assignments and since there aren't any there are no entries. The passwd file contains the primary login group assignment. That makes sense.
Navigation
[0] Message Index
[*] Previous page
Go to full version