Skip to main content

Defining Groups

Refer to the JSON Group Record documentation for information on all supported fields.

Example

Within the package tree ./pkg add gdm.group:

{
"groupName" : "gdm",
"gid" : 21,
"disposition" : "system"
}

Note that these are the minimum required set of fields, and disposition should always be set to system.

In your recipe's install section, you must install the file by group name and by gid to the %(libdir)/userdb directory:

    %install_file %(pkgdir)/gdm.group %(installroot)%(libdir)/userdb/gdm.group
ln -s gdm.group %(installroot)%(libdir)/userdb/21.group