LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-06-2017, 12:00 AM   #1
wrobertz
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Rep: Reputation: 0
Slackware 14.2 CTRL-C & CTRL-U don't clear mistyped login or password fields


Recently installed Slackware 14.2 on my laptop after using Ubuntu for 2+ yrs. (Used Slackware from 1996-2015...) This version is running a /boot/vmlinuz-huge-4.9.31 kernel on an old 64bit Dell Inspiron 17R. I've noticed that on the plain Linux login screen, CTRL-U doesn't quite clear the field, but leaves one or two characters, and CTRL-C doesn't appear to work either. Thus, if I've mistyped either the login name or the password (which is quite common for me...), I have to wait for it to err out (thus, using one of the login attempts). Has anyone else experienced this? This has never happened for me in many past releases of Slackware...
 
Old 07-06-2017, 05:54 PM   #2
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
CTRL-U works as expected to clear both the user name and password fields. BACKPSPACE also works in both cases. CTRL-C (interrupt) does not function as should be expected, as I think you do not what to interrupt/kill the login prompt...
 
Old 07-07-2017, 11:00 AM   #3
wrobertz
LQ Newbie
 
Registered: Oct 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Update on CTRL-U problem w/ Slackware 14.2

Upon further experimentation, I've discovered some interesting behavior. First of all, this seems to only be a problem on my one laptop (Dell Inspiron 17R); everything works as expected on my other laptop (Dell Inspiron 7548), also w/ Slackware 14.2 installed. Furthermore, the behavior described (erasing all but 1st char, ignoring CTRL-C) subsides after a failed login, but reappears after I either have a failed login attempt or do a CTRL-C. So, (possibly?) every other attempt is not as expected. Note that this happens from a plain black&white Linux terminal screen, not a window manager login screen. Anyway, I've never seen this performance. (I've installed and used many versions of Slackware from 1996-2015...) Weird. But, as I've said, seems to be specific to this one laptop. So in appears to be a device-dependent quirk that I can certainly live with...
 
Old 07-08-2017, 02:55 PM   #4
Xsane
Member
 
Registered: Jan 2014
Posts: 186

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by wrobertz View Post
Upon further experimentation, I've discovered some interesting behavior. First of all, this seems to only be a problem on my one laptop (Dell Inspiron 17R); everything works as expected on my other laptop (Dell Inspiron 7548), also w/ Slackware 14.2 installed. Furthermore, the behavior described (erasing all but 1st char, ignoring CTRL-C) subsides after a failed login, but reappears after I either have a failed login attempt or do a CTRL-C. So, (possibly?) every other attempt is not as expected. Note that this happens from a plain black&white Linux terminal screen, not a window manager login screen. Anyway, I've never seen this performance. (I've installed and used many versions of Slackware from 1996-2015...) Weird. But, as I've said, seems to be specific to this one laptop. So in appears to be a device-dependent quirk that I can certainly live with...
The reason you don't always see it is because the bug is a race condition.

Fixed in the next util-linux release:
https://github.com/karelzak/util-lin...86e45dd57ddef3
 
1 members found this post helpful.
Old 07-09-2017, 06:27 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
After the initial prompt/response (such as a failed login attempt) /bin/login takes over from /sbin/agetty which is why you see different behaviour.


Pat has already patched util-linux in current to revert the problem commit, see:
https://www.linuxquestions.org/quest...2/#post5721585

I hadn't realised at the time that this issue was also in 14.2 as well as current.

Karel has taken a more fundamental approach to fixing this in the next util-linux than just reverting the problem commit, and I'm inclined to agree with his rip-it-out approach.

Last edited by GazL; 07-09-2017 at 06:28 AM.
 
  


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
How to disable Ctrl+C, Ctrl+V, Ctrl+X in rdesktop? Aswathy Linux - Newbie 1 01-19-2011 06:22 PM
Recognizing ctrl+c,ctrl+l,ctrl+d in C programs leonardo6023 Programming 1 08-19-2009 09:23 AM
Ctrl+F2 & Ctrl+F7 won't work alkos333 Slackware 15 12-07-2007 03:44 AM
Any way to create bash short cuts (like CTRL+l for clear and Ctrl+D for exit) supersubu123 Linux - General 5 05-30-2007 03:02 AM
ctrl+c & ctrl+v equivalent for Gnome terminal window? halfpower Linux - General 2 11-29-2005 02:57 AM

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

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