Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I was wondering if anyone knew what determines the order of users in /etc/group entries? It does not appear to be alphabetical or by UID or chronologically by date added.

I don't think this makes any difference whatsoever, but I am just curious.

I know that it can be hand-edited and then it will just be in whatever order the admin puts them in, but it appears not to be in any logical order when entered by adding a user to a group via usermod.

share|improve this question

1 Answer 1

By date-added. If you hand-edit the file, order does not matter.

You can check format with the grpck command.

share|improve this answer
    
Clarification: By the date the group was added. Adding a user to a pre-existing group does not change the original order of the entries. –  Sammitch Feb 28 at 21:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.