How To Increase Security In Linux By Using PAM?
PAM can have additional modules used to easily implement many of the features that are offered by other operating systems (such as VMS or NT). These allow you to configure the acceptable formats of passwords or have access to other services available only at certain times or on certain days. Here’s an overview of some of the modules you may want to use in your security system: pam_time Determines what accounts have access to what services on what days. It has an external configuration file that is used by all PAM configuration files, located in /etc/security/time.conf. The configuration file lists the service name, tty, user name and time. If I wanted to have the mark account only be able to log in on weekdays (Monday through Friday), I would have an entry like the following: In this example, I say that for the login or ssh services and on any terminal, the mark account can only log in between Monday and Friday. In order for all services to include pam_time, you can add the following l