General discussion

  • Creator
    Topic
  • #2094132

    bash shell

    Locked

    by nixtootec ·

    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

All Comments

  • Author
    Replies
    • #3848681

      bash shell

      by zeus_ru ·

      In reply to bash shell

      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

      • #3561363

        bash shell

        by nixtootec ·

        In reply to bash shell

        Poster rated this answer

    • #3561362

      bash shell

      by nixtootec ·

      In reply to bash shell

      This question was closed by the author

Viewing 1 reply thread