The current situation is that all users have local configured telnet connections to a red hat server running a simple telnet daemon. I would like to consolidate those locally configured telnet sessions into a emulator that runs in an RDP session. The major hurdle is that doing so allows said users to establish an unlimited amount of telent sessions to the linux host. That isn't acceptable here as there are license issues involved. I'm looking for a way to control the number of sessions a particular user can establish, based on the user. There are some utility type accounts that need to establish many connections. The interactive user sessions though I would like to limit to two per user.
Is this possible? If so, how. Thank you.
Linux – Limit logons per user account in linux.
limitslinuxlogin
Best Answer
I use Debian but it should almost be the same:
In /etc/security/limits.conf (or something like that in Red Hat) perhaps you could use the maxlogins option for those users which may not have unlimited amount of sessions.