Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-24-2003 #1Just Joined!
- Join Date
- Oct 2002
- Posts
- 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...
- 03-24-2003 #2Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
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.Code:-:ALL EXCEPT root:LOCAL


Reply With Quote
