PAM_TIME(8)

  .SH "NAME" pam_time - PAM module for time control access
  .SH "SYNOPSIS"
    .HP u
      pam_time.so
       [conffile=conf-file]
       [debug]
       [noaudit]

  .SH "DESCRIPTION"

    .PP The pam_time PAM module does not authenticate the user, but instead it restricts access to a system and or specific applications at various times of the day and on specific days or over various terminal lines. This module can be configured to deny access to (individual) users based on their name, the time of day, the day of week, the service they are applying for and their terminal from which they are making their request.
    .PP By default rules for time/port access are taken from config file /etc/security/time.conf. An alternative file can be specified with the conffile option.
    .PP If there is no explicitly specified configuration file and /etc/security/time.conf does not exist, /usr/share/pam/security/time.conf is used.
    .PP If Linux PAM is compiled with audit support the module will report when it denies access.

  .SH "OPTIONS"

     .PP conffile=/path/to/time.conf

          Indicate an alternative time.conf style configuration file to override the default.

          .RE
          .PP debug

                  Some debug information is printed with syslog(3).

              .RE
              .PP noaudit

                      Do not report logins at disallowed time to the audit subsystem.

                  .RE

              .SH "MODULE TYPES PROVIDED"

                .PP Only the account type is provided.

              .SH "RETURN VALUES"

                  .PP PAM_SUCCESS

                           Access was granted.

                      .RE
                      .PP PAM_ABORT

                               Not all relevant data could be gotten.

                          .RE
                          .PP PAM_BUF_ERR

                                  Memory buffer error.

                              .RE
                              .PP PAM_PERM_DENIED

                                      Access was not granted.

                                  .RE
                                  .PP PAM_USER_UNKNOWN

                                           The user is not known to the system.

                                      .RE

                                  .SH "FILES"

                                      .PP /etc/security/time.conf

                                              Default configuration file

                                          .RE

                                      .SH "EXAMPLES"

                                        #%PAM-1.0
                                        #
                                        # apply pam_time accounting to login requests
                                        #
                                        login  account  required  pam_time.so

                                      .SH "SEE ALSO"

                                        .PP time.conf(5), pam.d(5), pam(8).

                                      .SH "AUTHOR"

                                        .PP pam_time was written by Andrew G. Morgan <morgan@kernel.org>.