LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-07-2004, 09:44 PM   #1
andy753421
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
logout after starting x


is there a way to logout after starting x? what i mean by this is can i start my desktop (fluxbox from tty1 or something and then immediately after x is started it will logout tty1 so that if someone tryes to do ctrl+alt+backspace or something when i'm running xlock or xscreensaver with lock enabled they cant just exit out of x and have controll over my user account? i noticed that if you press ctrl+alt+f1 then log ctrl+z and then logout (or maybe it was exit, i dont remember) and then go back into x with ctrl+alt+f7 then as far as i could tell theres no way to unlock the computer because even if you do one of the key commands to get to a differnt desktop you would still have to log in? i was wondering if there was any way to make this process a little easier so i wouldnt have to start x and then manually log out each time
 
Old 09-07-2004, 10:13 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you can simply disable the ctrl-alt-fn switching by adding a line to your xorg.conf. Take a look at man xorg.conf (slackware is using x.org now, right? if not, the equivalent thing for XFree86)

You could also start x right from inittab or the initscripts and bypass the tty login completely.
 
Old 09-07-2004, 10:25 PM   #3
thomasjor
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
Correct, Slackware uses xorg...

At prompt:

Code:
xorgconfig
Here is a good walkthrough for help if you need configuring X. It is pretty straight forward with a couple exceptions.

http://www.bitbenderforums.com/vb22/...?postid=313121

Note: It says use xf86config at the top, but its a lie, use the above to start the config.

EDIT: This does not apply to your post at all, I got carried away, oops.
 
Old 09-08-2004, 03:02 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Use something like
setsid startx ; sleep 3; exit
to launch X from tty1.
 
Old 11-03-2007, 12:01 PM   #5
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Obviously a few years late, but I use exec setsid startx as an alias for startx. That prevents using the shell again if you Ctrl+Alt+Backspace from the screen saver and prevents killing X from the tty you logged in from. Does the same as what r0b0 said in the end, but 3 seconds earlier
ta0kira
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting xprogram without starting X server. bruse Linux - Newbie 9 04-26-2005 07:05 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
Starting apps after starting xfce?? gtgoku Slackware 2 08-21-2004 01:49 PM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration