Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When setting up a linux system, I routinely disable the trapping of "CTRL+ALT+DEL" , to prevent any user from walking up to my system and rebooting it.
But there are other keyboard commands I want to know how to disable. Especially, "CTRL+ALT+BACKSPACE". This kills the entire X session, and brings the system to a command prompt (fully logged in with my user account). The CTRL+ALT+BACKSPACE even works if I have Xscreensaver with a locked screen. Since I start in runlevel 3, a user could kill X, and get access to my home directory, even if I have the Xscreensaver locking the screen! So, how do I disable the CTRL+ALT+BACKSPACE functionality?
There are other keys I want to disable. For example, "CTRL+ALT+F1" brings the user to the command line where I have my X session running from. All a user would have to do is hit "CTRL+ALT+F1" and then press "CTRL+C" and kill the X session. They would then have access to a command line with my logged in user account. How do I disable this one also?
THANKS, I appreciate anyone who can solve this problem. Thanks again!
But there are other keyboard commands I want to know how to disable. Especially, "CTRL+ALT+BACKSPACE".
in /etc/X11/XF86Config, find
# Option "DontZap"
and remove the #
Quote:
There are other keys I want to disable. For example, "CTRL+ALT+F1" brings the user to the command line where I have my X session running from. All a user would have to do is hit "CTRL+ALT+F1" and then press "CTRL+C" and kill the X session. They would then have access to a command line with my logged in user account. How do I disable this one also?
To work around this problem I'd recommend the
usage of xdm or something the like, run from
rc.local, rather than you starting X manually...
Just add it, then ;)
It lives in the section ServerFlags
Code:
Section "ServerFlags"
# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.
# Option "DontZap"
I guess I can just add the section, anywhere in the file?
Yep :)
Cheers,
Tink
P.S.: Are you actually looking at XF86Config-File
that is used by your XServer? It might be called
XF86Config-4... If it is, though, RedHat sucks
even more than I thought ;)
Now, the only problem remaining is to disable the "CTRL+ALT+F1" ability. Any ideas on how to do that, without switching to xdm/gdm/kdm managers? I *like* booting into runlevel 3 and starting X with "startx" command. I want to keep it that way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.