LinuxCommandLibrary

pam_time

restricts login by time

TLDR

Enable time-based access

$ account required pam_time.so
copy
Configure in time.conf
$ echo "login ; * ; * ; Al0800-1700" >> /etc/security/time.conf
copy

SYNOPSIS

pam_time.so

DESCRIPTION

pam_time restricts login by time. Configures access schedules.
The module enforces time windows. Based on time.conf rules.

PARAMETERS

Configuration in /etc/security/time.conf:
Format: services ; ttys ; users ; times
Time syntax: day/hour ranges

CAVEATS

Account module. Requires time.conf. Time-based restrictions.

HISTORY

pam_time provides time-based access control for system logins.

SEE ALSO

pam(8), time.conf(5)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community