LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-13-2020, 08:06 PM   #1
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Rep: Reputation: Disabled
Debian not excepting password when screen is locked unless i restart.


Does anyone have a solution or explanation to this problem. My problem is that when i leave Debian on for several hours with the default screen saver on it won`t take the password but if i re-start or re-boot it does like it normally would. Yes, i know the password & entered it several times but it would not take it ** Same password ** until re-start.
 
Old 07-13-2020, 08:10 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Did it ever work correctly?
 
1 members found this post helpful.
Old 07-13-2020, 08:16 PM   #3
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Did it ever work correctly?
It`s a new install only a few days old. I think it has been doing it from the beginning i noticed it when i leave it on several hours with no activity.
 
Old 07-14-2020, 01:43 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
I've had once a similar problem with Xubuntu 20.04. Logging in on a virtual console (Ctrl+Alt+F1) and issuing xfce4-screensaver-command --exit helped. Didn't investigate it any further.

There is xdg-screensaver command to control screensaver from the command line. Most screensavers also have their respective *screensaver-command. E.g. xscreensaver-command, gnome-screensaver-command, mate-screensaver-command, etc.

Rebooting in this situation is unnecessary.

Last edited by shruggy; 07-14-2020 at 02:13 AM.
 
1 members found this post helpful.
Old 07-14-2020, 10:58 AM   #5
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
I've had once a similar problem with Xubuntu 20.04. Logging in on a virtual console (Ctrl+Alt+F1) and issuing xfce4-screensaver-command --exit helped. Didn't investigate it any further.

There is xdg-screensaver command to control screensaver from the command line. Most screensavers also have their respective *screensaver-command. E.g. xscreensaver-command, gnome-screensaver-command, mate-screensaver-command, etc.

Rebooting in this situation is unnecessary.
The screen saver is locked with a password like the system on startup so terminal is not accessible but re-starting is the only option.
 
Old 07-14-2020, 11:48 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Unless you specifically configured X to disable them, virtual consoles should be accessible when the screen is locked. See the section Magic Backdoor Keystrokes in the xscreensaver(1) manual page:
Quote:
The XFree86 X server and the Linux kernel both trap certain magic keystrokes before X11 client programs ever see them. If you care about keeping your screen locked, this is a big problem.

Ctrl+Alt+Backspace
This keystroke kills the X server, and on some systems, leaves you at a text console. If the user launched X11 manually, that text console will still be logged in. To disable this keystroke globally and permanently, you need to set the DontZap flag in your xorg.conf or XF86Config or XF86Config-4 file, depending which is in use on your system. See XF86Config(5) for details.
Ctrl-Alt-F1, Ctrl-Alt-F2, etc.
These keystrokes will switch to a different virtual console, while leaving the console that X11 is running on locked. If you left a shell logged in on another virtual console, it is unprotected. So don't leave yourself logged in on other consoles. You can disable VT switching globally and permanently by setting DontVTSwitch in your xorg.conf, but that might make your system harder to use, since VT switching is an actual useful feature.

There is no way to disable VT switching only when the screen is locked. It's all or nothing.
Ctrl-Alt-KP_Multiply
This keystroke kills any X11 app that holds a lock, so typing this will kill xscreensaver and unlock the screen. This so-called "feature" showed up in the X server in 2008, and as of 2011, some vendors are shipping it turned on by default. How nice. You can disable it by turning off AllowClosedownGrabs in xorg.conf.
Alt-SysRq-F
This is the Linux kernel "OOM-killer" keystroke. It shoots down random long-running programs of its choosing, and so might might target and kill xscreensaver, and there's no way for xscreensaver to protect itself from that. You can disable it globally with:
Code:
echo 176 > /proc/sys/kernel/sysrq
This text is quite dated. Nowadays, most vendors (I believe Debian, too) ship their systems with Ctrl+Alt+Backspace and Ctrl+Alt+KP_Multiply disabled by default. But virtual consoles and the Magic SysRq key should be enabled in Debian.

Last edited by shruggy; 07-14-2020 at 12:14 PM.
 
1 members found this post helpful.
Old 07-15-2020, 04:23 PM   #7
TokTok
Member
 
Registered: Oct 2019
Posts: 230

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Unless you specifically configured X to disable them, virtual consoles should be accessible when the screen is locked. See the section Magic Backdoor Keystrokes in the xscreensaver(1) manual page:

This text is quite dated. Nowadays, most vendors (I believe Debian, too) ship their systems with Ctrl+Alt+Backspace and Ctrl+Alt+KP_Multiply disabled by default. But virtual consoles and the Magic SysRq key should be enabled in Debian.
Thank`s i`ll look into it.
From your post the screen saver even though locked can be bypassed with the procedures above. Being a newbie can you specify what and where to post any specific code to disable the screen save from being bypassed ?
 
Old 07-15-2020, 07:49 PM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by TokTok View Post
From your post the screen saver even though locked can be bypassed with the procedures above.
Except for people who launch X from the command line (which is rare these days and which you are not doing), it can only be "bypassed" by entering username and password at the virtual console.
 
1 members found this post helpful.
  


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
terminal password: not excepting any characters.. swearls Linux - Newbie 4 02-27-2018 09:10 PM
ftp server not excepting connections zimbot CentOS 6 10-21-2016 09:13 PM
crashed Centos 7 is not excepting eno16777716 adapter keimdf Linux - Newbie 1 04-22-2016 03:59 PM
server 12.04 not excepting connections, not responding to arp requests gobo7 Ubuntu 8 11-22-2012 04:15 AM
Open Screen as Daemon Will not Execute Command Unless Screen is Opened redir Linux - Software 1 08-08-2011 07:36 PM

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

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