Skip to content

Instantly share code, notes, and snippets.

@sisco70
Last active August 21, 2021 09:35
Show Gist options
  • Save sisco70/71f4a4d93a3ecf644a958481d4d887fa to your computer and use it in GitHub Desktop.
Save sisco70/71f4a4d93a3ecf644a958481d4d887fa to your computer and use it in GitHub Desktop.
PAM Time login access
# UBUNTU 20.04 LTS Allow access to USERNAME only from 18.30 to 21.00 every day
# Add to /etc/pam.d/common-auth
account required pam_time.so
# Add to /etc/security/time.conf
*;*;USERNAME;Al1830-2100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment