1

Conventionally, a group is plural, so it would follow to name a Linux group with the plural of a noun (e.g. 13 accountants in the accountants group). This may have unintended consequences. For example, a SQL plural table name (e.g. users) leads to awkward query statements: user_has_role vs. users_have_roles.

What, if any, similar cases exist against naming a group as a plural?

ndemarco
  • 213
  • 1
  • 2
  • 13
  • 2
    So sad that this got downvoted and closed... Everybody who cares deeply about the integrity of their system models, will, and, indeed, _should_ face this annoying question -- and sort it out properly, rather than just kick it out of view. Same goes for directory names of collections and DB table names, even class names etc... (There're subtle risks in the sloppiness of abstractions behind things like this, and professionals should be capable of conducting serious conversations about this topic without dismissing it as "opinions".) – Sz. Feb 27 '23 at 19:58
  • 1
    Good answers to these questions lead to conventions and standards, which improve readability and reduce errors. – ndemarco Feb 28 '23 at 20:44
  • 1
    Somewhat related: [singular vs plural type names in urls](https://serverfault.com/questions/73682/standard-for-singular-vs-plural-type-names-in-urls/695283) – anx Mar 03 '23 at 13:03

1 Answers1

3

While there is no industry-wide group naming convention, it helps to stick to a convention that is easy to understand and easy to remember.

Naming groups based on their broad purpose avoids the need to choose between singular and plural names. This way you won't have to reference your list of groups to recall a group's name.

E.g. accounting, hr, shipping, etc...

If the word for the group's purpose demands choosing between singular and plural, e.g. admin or admins, it is best to go with the singular version as it is easier to remember. This method also conforms to Unix group names, e.g. wheel, sudo, audio, etc...

slightly_toasted
  • 804
  • 5
  • 14
  • groups are not job functions, so I disagree. `Accountants` are not the same as `accounting`. Accountants may perform accounting tasks, but so do other non-accountants. Applying a function name to a group of people implicitly associates the function with the group. Accounting functions can be performed by 'bookkeepers' also. – ndemarco Feb 28 '23 at 20:48
  • @ndemarco They are not the same, but often the former is the R in [RBAC](https://en.wikipedia.org/wiki/Role-based_access_control "Role-based access control"). That one admin (function/role) may actually be a pentester from the security department (group), and that one person playing sounds (function/role) may actually be the janitor (group) in a video meeting. HR may put people into such group boxes. But the Linux system, it actually cares about the currently executed function when deciding about granting or denying access. – anx Mar 03 '23 at 09:53