{
    "content": [
        {
            "type": "text",
            "text": "# TIME.CONF (man)\n\n## NAME\n\ntime.conf - configuration file for the pamtime module\n\n## DESCRIPTION\n\nThe pamtime PAM module does not authenticate the user, but instead it restricts access to a\nsystem and or specific applications at various times of the day and on specific days or over\nvarious terminal lines. This module can be configured to deny access to (individual) users\nbased on their name, the time of day, the day of week, the service they are applying for and\ntheir terminal from which they are making their request.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **EXAMPLES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "TIME.CONF",
        "section": "",
        "mode": "man",
        "summary": "time.conf - configuration file for the pamtime module",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "These are some example lines which might be specified in /etc/security/time.conf.",
            "All users except for root are denied access to console-login at all times:",
            "login ; tty* & !ttyp* ; !root ; !Al0000-2400",
            "Games (configured to use PAM) are only to be accessed out of working hours. This rule does",
            "not apply to the user waster:",
            "games ; * ; !waster ; Wd0000-2400 | Wk1800-0800"
        ],
        "see_also": [
            {
                "name": "pamtime",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pamtime/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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 49,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "time.conf - configuration file for the pamtime module\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamtime PAM module does not authenticate the user, but instead it restricts access to a\nsystem and or specific applications at various times of the day and on specific days or over\nvarious terminal lines. This module can be configured to deny access to (individual) users\nbased on their name, the time of day, the day of week, the service they are applying for and\ntheir terminal from which they are making their request.\n\nFor this module to function correctly there must be a correctly formatted\n/etc/security/time.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\n\nIn words, each rule occupies a line, terminated with a newline or the beginning of a comment;\na '#'. It contains four fields separated with semicolons, ';'.\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 netgroup of users to whom\nthis rule applies.\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 netgroups no wildcards or\nlogic operators are allowed.\n\nThe times field is used to indicate the times at which this rule applies. The format here is\na logic list of day/time-range entries. The days are specified by a sequence of two character\nentries, MoTuSa for example is Monday Tuesday and Saturday. Note that repeated days are unset\nMoMo = no day, and MoWk = all weekdays bar Monday. The two character combinations accepted\nare Mo Tu We Th Fr Sa Su Wk Wd Al, the last two being week-end days and all 7 days of the\nweek 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\nFor a rule to be active, ALL of service+ttys+users must be satisfied by the applying process.\n\nNote, currently there is no daemon enforcing the end of a session. This needs to be remedied.\n\nPoorly formatted rules are logged as errors using syslog(3).\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "These are some example lines which might be specified in /etc/security/time.conf.\n\nAll users except for root are denied access to console-login at all times:\n\nlogin ; tty* & !ttyp* ; !root ; !Al0000-2400\n\n\nGames (configured to use PAM) are only to be accessed out of working hours. This rule does\nnot apply to the user waster:\n\ngames ; * ; !waster ; Wd0000-2400 | Wk1800-0800\n\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pamtime(8), pam.d(5), pam(7)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "pamtime was written by Andrew G. Morgan <morgan@kernel.org>.\n\n\n\nLinux-PAM Manual                             06/08/2020                                 TIME.CONF(5)",
                "subsections": []
            }
        }
    }
}