Is there a way to disable the keyboard and mouse ports?
I have a machine in a public area running an application that no-one needs to touch.
However, someone could come up and plug a keyboard in it and mouse and be logged in as that user (not root).
Is there a way to disable the mouse and keyboard so only remote ssh connections will control the PC if changes need to be made.
This would also include any usb device which is fine and the PS2 keyboard and mouse.
Thanks,
Jerry
Epoxy resin usually prevents plugs being inserted where you don't want them to be.
Dave
On Tuesday 03 Jan 2006 22:34, Jerry Geis wrote:
Is there a way to disable the keyboard and mouse ports?
I have a machine in a public area running an application that no-one needs to touch.
However, someone could come up and plug a keyboard in it and mouse and be logged in as that user (not root).
Is there a way to disable the mouse and keyboard so only remote ssh connections will control the PC if changes need to be made.
This would also include any usb device which is fine and the PS2 keyboard and mouse.
Thanks,
Jerry
What about simply removing the mingetty entries from your inittab or making something like runlevel 4 the default and remove the '4' from the /etc/inittab mingetty entries (and don't run gpm or X).
Cheers, MaZe.
On Tue, 3 Jan 2006, David Fletcher wrote:
Epoxy resin usually prevents plugs being inserted where you don't want them to be.
Dave
On Tuesday 03 Jan 2006 22:34, Jerry Geis wrote:
Is there a way to disable the keyboard and mouse ports?
I have a machine in a public area running an application that no-one needs to touch.
However, someone could come up and plug a keyboard in it and mouse and be logged in as that user (not root).
Is there a way to disable the mouse and keyboard so only remote ssh connections will control the PC if changes need to be made.
This would also include any usb device which is fine and the PS2 keyboard and mouse.
Thanks,
Jerry
Jerry Geis geisj@pagestation.com wrote:
Is there a way to disable the keyboard and mouse ports?
Remember, in UNIX, hardware is _useless_ if it is not bound to a device used by a service.
So remove all relevant entries from /etc/inittab. The mingetty tty entries, Xdm, the keyboard combination traps, etc... Don't start gpm, kudzu, etc... as services either, just to be sure.
That will prevent any use of a keyboard/mouse once Linux boots.
You can even remove any prompt from the bootloader. You can also pass a parameter to set the console to a physically non-existant COM device, or some other dummy port.
I have a machine in a public area running an application that no-one needs to touch. However, someone could come up and plug a keyboard in it and mouse and be logged in as that user (not root). Is there a way to disable the mouse and keyboard so only remote ssh connections will control the PC if changes need to be made.
Again, hardware is _useless_ if it's not bound to a device which is used by a service. No local ttys, no local access -- other than the console, which can be set to dummy ;->
This would also include any usb device which is fine and the PS2 keyboard and mouse.
Again, hadware is useless if it's not bound to a device which is used by a service.
There are also games you can play with /dev and udev too.