LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-26-2014, 12:57 PM   #1
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Rep: Reputation: Disabled
screen lock


Even with x screen locked I can switch to the text console ctrl+alt+f1 and press ctrl+c to kill x session and, I can lunch it again. is that intended or screen lock should not let you kill x session.
 
Old 12-26-2014, 05:31 PM   #2
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 95
to get x to lock the screen, you need to login with X instead of startx from a console. an init 4 command or updating the runlevel in /etc/inittab to 4 will do this for you.

The only other way I can think of is running:
startx; exit

that will generally kill your login with a ctrl c... but really... just use the x login.
 
Old 12-26-2014, 06:05 PM   #3
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
Haythem,
If you're concerned about access to your TTY if X is killed, and you wish to login and launch X with the command line, use:
Code:
exec startx
and then even if X is killed, your user is automatically logged out.
 
3 members found this post helpful.
Old 12-26-2014, 08:34 PM   #4
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by WhiteWolf1776 View Post
to get x to lock the screen, you need to login with X instead of startx from a console. an init 4 command or updating the runlevel in /etc/inittab to 4 will do this for you.

The only other way I can think of is running:
startx; exit

that will generally kill your login with a ctrl c... but really... just use the x login.
Thanks WhiteEolf1776 for you suggestions, I'm not a fan of graphical login so I prefer to use "3".
 
Old 12-26-2014, 08:36 PM   #5
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by STDOUBT View Post
Haythem,
If you're concerned about access to your TTY if X is killed, and you wish to login and launch X with the command line, use:
Code:
exec startx
and then even if X is killed, your user is automatically logged out.
Thanks STDOUBT that worked It automatically logged out the user after killing X.
 
Old 12-26-2014, 09:05 PM   #6
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 932

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
You can try running 'startx &' then 'vlock', it's a console locker.
There is a slackbuild for it.
 
Old 12-29-2014, 08:43 AM   #7
Haythem
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Haythem View Post
Thanks STDOUBT that worked It automatically logged out the user after killing X.
That worked as well. Thank you!
 
  


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
LXer: Screen Lock Vs Login Screen in the upcoming Gnome LXer Syndicated Linux News 0 06-22-2012 10:50 PM
Lock X screen and lock ctrl/alt keys Mr. Alex Linux - Software 4 02-10-2012 08:03 AM
Disable lock session (lock screen) when switch user in KDE 4.x Murz Linux - Desktop 4 12-01-2010 08:28 AM
Num lock OFF and Caps & Screen Lock ON at Linux startup. Reversing? peteyperson Linux - Newbie 2 02-28-2009 11:44 AM
GDM "Lock screen" item fails to lock down. Swan1 SUSE / openSUSE 9 02-03-2009 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:13 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