{
    "mode": "man",
    "parameter": "GROUP.CONF",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/GROUP.CONF/5/json",
    "generated": "2026-11-09T17:00:05Z",
    "sections": {
        "NAME": {
            "content": "group.conf - configuration file for the pamgroup module\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The pamgroup PAM module does not authenticate the user, but instead it grants group\nmemberships (in the credential setting phase of the authentication module) to the user. Such\nmemberships are based on the service they are applying for.\n\nFor this module to function correctly there must be a correctly formatted\n/etc/security/group.conf file present. White spaces are ignored and lines maybe extended with\n'\\' (escaped newlines). Text following a '#' is ignored to the end of the line.\n\nThe syntax of the lines is as follows:\n\nservices;ttys;users;times;groups\n\nThe first field, the services field, is a logic list of PAM service names that the rule\napplies to.\n\nThe second field, the tty field, is a logic list of terminal names that this rule applies to.\n\nThe third field, the users field, is a logic list of users, or a UNIX group, or a netgroup of\nusers to whom this rule applies. Group names are preceded by a '%' symbol, while netgroup\nnames are preceded by a '@' symbol.\n\nA logic list namely means individual tokens that are optionally prefixed with '!' (logical\nnot) and separated with '&' (logical and) and '|' (logical or).\n\nFor these items the simple wildcard '*' may be used only once. With UNIX groups or netgroups\nno wildcards or logic operators are allowed.\n\nThe times field is used to indicate \"when\" these groups are to be given to the user. The\nformat here is a logic list of day/time-range entries. The days are specified by a sequence\nof two character entries, MoTuSa for example is Monday Tuesday and Saturday. Note that\nrepeated days are unset MoMo = no day, and MoWk = all weekdays bar Monday. The two character\ncombinations accepted are Mo Tu We Th Fr Sa Su Wk Wd Al, the last two being week-end days and\nall 7 days of the week respectively. As a final example, AlFr means all days except Friday.\n\nEach day/time-range can be prefixed with a '!' to indicate \"anything but\". The time-range\npart is two 24-hour times HHMM, separated by a hyphen, indicating the start and finish time\n(if the finish time is smaller than the start time it is deemed to apply on the following\nday).\n\nThe groups field is a comma or space separated list of groups that the user inherits\nmembership of. These groups are added if the previous fields are satisfied by the user's\nrequest.\n\nFor a rule to be active, ALL of service+ttys+users must be satisfied by the applying process.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "These are some example lines which might be specified in /etc/security/group.conf.\n\nRunning 'xsh' on tty* (any ttyXXX device), the user 'us' is given access to the floppy\n(through membership of the floppy group)\n\nxsh;tty*&!ttyp*;us;Al0000-2400;floppy\n\nRunning 'xsh' on tty* (any ttyXXX device), the users 'sword', 'pike' and 'shield' are given\naccess to games (through membership of the floppy group) after work hours.\n\nxsh; tty* ;sword|pike|shield;!Wk0900-1800;games, sound\nxsh; tty* ;*;Al0900-1800;floppy\n\n\nAny member of the group 'admin' running 'xsh' on tty*, is granted access (at any time) to the\ngroup 'plugdev'\n\nxsh; tty* ;%admin;Al0000-2400;plugdev\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pamgroup(8), pam.d(5), pam(7)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "pamgroup was written by Andrew G. Morgan <morgan@kernel.org>.\n\nLinux-PAM                                    05/07/2023                                GROUP.CONF(5)",
            "subsections": []
        }
    },
    "summary": "group.conf - configuration file for the pamgroup module",
    "flags": [],
    "examples": [
        "These are some example lines which might be specified in /etc/security/group.conf.",
        "Running 'xsh' on tty* (any ttyXXX device), the user 'us' is given access to the floppy",
        "(through membership of the floppy group)",
        "xsh;tty*&!ttyp*;us;Al0000-2400;floppy",
        "Running 'xsh' on tty* (any ttyXXX device), the users 'sword', 'pike' and 'shield' are given",
        "access to games (through membership of the floppy group) after work hours.",
        "xsh; tty* ;sword|pike|shield;!Wk0900-1800;games, sound",
        "xsh; tty* ;*;Al0900-1800;floppy",
        "Any member of the group 'admin' running 'xsh' on tty*, is granted access (at any time) to the",
        "group 'plugdev'",
        "xsh; tty* ;%admin;Al0000-2400;plugdev"
    ],
    "see_also": [
        {
            "name": "pamgroup",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/pamgroup/8/json"
        },
        {
            "name": "pam.d",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pam.d/5/json"
        },
        {
            "name": "pam",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
        }
    ]
}