Why are entries in /etc/group in 11.4 in random order?

This really is not a major issue but can anyone tell me why the order of entries in the /etc/group file in OpenSuSE 11.4 is apparently at random?

The order of entries in just about every UNIX or Linux /etc/group file I’ve ever seen starts with GID = 0 at the top and the following entries are usually in ascending GID order. Was rather surprised to find the entries all over the place when I started editing /etc/group on 11.4 following an upgrade from 32-bit SuSE 9.3 to 64-bit 11.4, with the list starting with ‘audio:x:17:’ !

Any ideas? Not a major issue but it does look very messy.

Andy

It is in alphabetical order, but you could always sort it according to your preferences I guess.

Yes, it seems to be alphabetic from the start. But those that are added (using YaST user and group management) are at the end.

This of course only tells the facts (which now seem to be less random, but only different from your expectation), but not the “why” you aksed for.

On 2012-01-21 11:26, hcvv wrote:
>
> Yes, it seems to be alphabetic from the start. But those that are added
> (using YaST user and group management) are at the end.
>
> This of course only tells the facts (which now seem to be less random,
> but only different from your expectation), but not the “why” you aksed
> for.

Sorting is not mandatory. The order is just the order in which new entries
are made.

If the initial part of the file is sorted alphabetically it probably means
that it was directly copied from somewhere in the initial system.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)