The best way to limit user logins is using Pluggable Authentication Modules (PAM). Red Hat 8.0 should come with PAM enabled by default. Check in the /etc/security directory for a file called limits.conf that should provide the functionality you require. The limits.conf file is well-documented and you can also view the PAM man page using the command: man pam. Your Red Hat documentation should also discuss how PAM is implemented on your version of Red Hat.
Dig Deeper on Linux servers
Related Q&A from James Turnbull
A user wants to implement OSSEC on a Windows server because he has no server side Linux operating system. Continue Reading
Solaris 10 Trusted Extensions and SELinux are best suited to different system requirements and administrator skill sets. Our security expert explains... Continue Reading
Configuring spam filters Spamassassin and dspam together in the email server Postfix is easy with the resources listed by our security expert. Continue Reading