When I run w or users && id && who -a I see that there are over 5 logins with my username: one for tty7 and the rest pts/0 pts/1 etc. Those pts are pseudo terminals (open consoles or /bin/bash and one for kded5 [kdeinit5]).

Now I'd like to set maxsyslogins and/or maxlogins in /etc/security/limits.conf to increase security. Here it says:

maxlogins       max number of logins for this user
maxsyslogins    max number of logins on the system

Which of these would need to be set to what to still allow opening many pseudo-terminals but preventing SSH-access or any other means to get an "actual" login of more than 1 (for example)?

System is Debian10/KDE.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.