Based upon the configuration file /etc/security/time.conf, the pam_time module limits the times users can log in to the system. Using this module, you can limit access for certain users to specific times of the day. Also, you can limit the access to services and specific TTYs from which the user logs in. In the configuration file time.conf, the lines have the following form:


The following is an example of a configuration line from t ime.conf where all users except root are denied access (the exclamation mark in front of the times disallows any access) to the system from any TTY. This might be a perfect solution to prevent users from breaking in to a system where normal users shouldn't log in anyway.

Was this article helpful?

0 0

Post a comment