Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Disable Login on the server machine

    I want to know, How to disable login on the server?For security reasons I want to allow users to login on my Linux server only through ssh and nobody should be allowed to logon directly sitting on the server machine. Please help me...

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Lebanon, pa
    Put the following line in /etc/security/access.conf
    That will disable all local logins except root. I have seen CONSOLE used instead of LOCAL on some machines. I suggest you leave root access at the console but you can remove that as well but it could be a pain if the network goes down and you don't want to reboot the box to fix it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts