Bug 7376 - session die after read backspace key
Summary: session die after read backspace key
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.20.x
Hardware: PC Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
: 7382 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-09 06:57 UTC by Pawel Szmuc
Modified: 2014-12-08 12:11 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
LOG (6.36 KB, text/plain)
2014-10-01 08:40 UTC, Pawel Szmuc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Szmuc 2014-09-09 06:57:35 UTC
Hi

This issue was found on ESXi 5.* with BusyBox v1.20.2 multi-call binary.

We wrote a script, to relogin users.

On /etc/passwd users got:
TEST:x:1000:1000:Linux User,,,:/:/tmp/relogin.sh

############ relogin.sh ###########
#!/bin/sh
/bin/login
exit $?
###################################

If user login, "/bin/login" ask for a user name to relogin. If we press "backupspace" key, session died.

This could be reproduce by "read" at login script.
Comment 1 Denys Vlasenko 2014-09-25 11:36:32 UTC
(In reply to comment #0)
> Hi
> 
> This issue was found on ESXi 5.* with BusyBox v1.20.2 multi-call binary.
> 
> We wrote a script, to relogin users.
> 
> On /etc/passwd users got:
> TEST:x:1000:1000:Linux User,,,:/:/tmp/relogin.sh
> 
> ############ relogin.sh ###########
> #!/bin/sh
> /bin/login
> exit $?
> ###################################
> 
> If user login, "/bin/login" ask for a user name to relogin. If we press
> "backupspace" key, session died.

Tried, but failed to reproduce. In my testing, /bin/login does execute, and won't exit or crash if backspace is pressed.

Can you modify the script to run

strace -o/tmp/LOG -tt -s99 /bin/login

and post the LOG file?
Comment 2 Denys Vlasenko 2014-09-25 11:37:13 UTC
*** Bug 7382 has been marked as a duplicate of this bug. ***
Comment 3 Pawel Szmuc 2014-10-01 08:40:22 UTC
Created attachment 5702 [details]
LOG
Comment 4 Pawel Szmuc 2014-10-01 08:45:13 UTC
Hi

Thank you for your reply. LOG was attached.

On our ESXi using SSH the connections looks like
--------------------------------------------------------------
Using username "TEST".
                          - NOTICE -

Using keyboard-interactive authentication.
Password:
User TEST authenticated, now you can relogin to any user
[ Process PID=914197 runs in 32 bit mode. ]
HOST_NAME login: {FIST_KEY_IS_BACKSPACE}
--------------------------------------------------------------
Connection drop.

If this script is running from shell, this issue cannot be reproduced (only using SSH and new connection).
Comment 5 Pawel Szmuc 2014-10-13 09:12:03 UTC
Hi

Any sugestions ?
Comment 6 Pawel Szmuc 2014-12-08 12:11:01 UTC
Hi

Can someone help?