Discussion Locked

bash shell

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to figure out a way that on my linux box if there is a user with one terminal connection how not to let him open another one.. i believe that I can do this with a bash script but just can't seem to do it right anyone have a script that they are using to do this.. Basically this will use who and once it does that make sure that they are logged on only once

3 replies

by zeus_ru

The best way to do it is to deny muktiple logins for that user. You must do it editing
/etc/security/limits.conf and putting a line like this.

username maxlogins 1

This discussion is closed to new replies.