|
Home > Archive > Unix Programming > March 2004 > disable keyboard and mouse
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
disable keyboard and mouse
|
|
|
| Is it possible for an application to disable the keyboard and mouse for the
console user temporarily?
Well, I guess anything's possible, but would like to know where to start
looking. Mainly for Solaris for now, but eventually others (AIX, Linux,
etc).
The idea is it would be a remote user coming in (telnet, etc) needs to do
something that prohibits the console user from doing anything
simultaneously. It would be OK for the remote user to be able to run the
program that disables the KB/mouse to be in root suid mode.
Could it be done without forcing a logout of the console user?
Thanks,
Jim
| |
| Pascal Bourguignon 2004-03-16, 6:40 pm |
| "gailw" <gailw@worldnet.att.net> writes:
> Is it possible for an application to disable the keyboard and mouse for the
> console user temporarily?
> Well, I guess anything's possible, but would like to know where to start
> looking. Mainly for Solaris for now, but eventually others (AIX, Linux,
> etc).
>
> The idea is it would be a remote user coming in (telnet, etc) needs to do
> something that prohibits the console user from doing anything
> simultaneously. It would be OK for the remote user to be able to run the
> program that disables the KB/mouse to be in root suid mode.
>
> Could it be done without forcing a logout of the console user?
You could kill -STOP all the programs that have the console as TTY.
then kill -CONT to resume them.
--
__Pascal_Bourguignon__ http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he doesn't
want merely because you think it would be good for him.--Robert Heinlein
http://www.theadvocates.org/
| |
| Sean Burke 2004-03-16, 6:40 pm |
|
"gailw" <gailw@worldnet.att.net> writes:
> Is it possible for an application to disable the keyboard and mouse for the
> console user temporarily?
> Well, I guess anything's possible, but would like to know where to start
> looking. Mainly for Solaris for now, but eventually others (AIX, Linux,
> etc).
>
> The idea is it would be a remote user coming in (telnet, etc) needs to do
> something that prohibits the console user from doing anything
> simultaneously. It would be OK for the remote user to be able to run the
> program that disables the KB/mouse to be in root suid mode.
>
> Could it be done without forcing a logout of the console user?
What makes you think that the system's administrator will
be using the console? In my experience, it is very rare for
a unix system administrator to actually touch the console
keyboard. Generally, they will be logged in remotely as well.
And even if you know that the admin will be using the console,
how can you ensure that you don't lock them out while they
are halfway through some modification? I think you need a
better method.
-SEan
|
|
|
|
|