DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Security

FreeBSD Security Securing FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th August 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default Disable CTRL+ALT+DEL FreeBSD Gnome

I use FreeBSD 7 with Gnome and I want disable ctrl+alt+del FreeBSD for kill gnome ,

I use FreeBSD in my company and other user can touch my system when someone press ctrl+alt+del , can kill gnome and after that he or she can type startx for start Gnome . so this make problem for my system

How I disable ctrl+alt+del FreeBSD ???
Reply With Quote
  #2   (View Single Post)  
Old 25th August 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

man xorg.conf
Code:
        Option "DontZap"  "boolean"
              This disallows the use of the Ctrl+Alt+Backspace sequence.  That
              sequence is normally used to terminate the  Xorg  server.   When
              this option is enabled, that key sequence has no special meaning
              and is passed to clients.  Default: off.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #3   (View Single Post)  
Old 25th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Another solution is to use a graphical login manage (xdm, gdm, kdm) instead of manually starting X from the commandline.

This way, if they kill the X server, the login manager restarts instead of dropping them to a live shell.

Even if you kill CTRL+ALT+Backspace, they can still CTRL+ALT+F1, hit CTRL+C to kill startx, and have access to your live login shell.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #4   (View Single Post)  
Old 26th August 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

Quote:
Originally Posted by phoenix View Post
Even if you kill CTRL+ALT+Backspace, they can still CTRL+ALT+F1, hit CTRL+C to kill startx, and have access to your live login shell.
This can also be disabled in xorg.conf

Code:
       Option "DontVTSwitch"  "boolean"
              This disallows the use of the  Ctrl+Alt+Fn  sequence  (where  Fn
              refers  to one of the numbered function keys).  That sequence is
              normally used to switch to another "virtual terminal" on operat-
              ing  systems  that  have  this  feature.   When  this  option is
              enabled, that key sequence has no special meaning and is  passed
              to clients.  Default: off.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #5   (View Single Post)  
Old 26th August 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,052
Thanked 198 Times in 156 Posts
Default

Even better would be locking your workstation when you're not sitting in front of it, I've learned the hard way that you should always do this when other people can readily access your workstation ... You go to the toilet, and when you come back you discover that some stupid hack (coworker, friend of a coworker, kid, customer, whatever) closed all your windows, changed all kinds of settings, and who knows what else they did.

It's not even a matter of trust or security, just convenience and time-saving.

xlockmore can disable all CTRL+ALT key combinations.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #6   (View Single Post)  
Old 27th August 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Control-Alt-delete (to restart the system) is managed by the operating system. As for disabling it, the FAQs gave this answer, but I am not sure if it will work in X. You may have to lock C-A-D using X's keymapping too.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #7   (View Single Post)  
Old 27th August 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 282
Thanked 5 Times in 5 Posts
Default

Which method can use for disable CTRL+ALT+Back Space , these keys can kill xorg too . ?
Reply With Quote
  #8   (View Single Post)  
Old 27th August 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

http://daemonforums.org/showpost.php...02&postcount=2

or just read up for a few of vermaden's previous posts to find it.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable FreeBSD boot loader? Turquoise88 FreeBSD General 2 17th July 2009 03:11 PM
switch user Gnome and FreeBSD mfaridi FreeBSD General 2 30th September 2008 07:38 AM
Ctrl-D and Ctrl-C sometimes dose not work mfaridi FreeBSD General 9 6th July 2008 07:04 AM
disabling ctrl-c malindang FreeBSD General 3 27th June 2008 12:06 AM
FreeBSD 7 Gnome problems Arievilo FreeBSD General 4 5th June 2008 08:16 AM


All times are GMT. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick