Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w/who entry for exited TTY still being shown #78

Open
OllieGitHub opened this issue Nov 15, 2023 · 0 comments
Open

w/who entry for exited TTY still being shown #78

OllieGitHub opened this issue Nov 15, 2023 · 0 comments

Comments

@OllieGitHub
Copy link

OllieGitHub commented Nov 15, 2023

    [host]:~ # w
    USER            TTY             IDLE    TIME             HOST
    root            pts/0           00:00   Nov 15 11:35:09  10.249.3.187
    [host]:~ # adduser testuser
    Changing password for testuser
    New password:
    Bad password: too short
    Retype password:
    passwd: password for testuser changed by root
    [host]:~ # login testuser
    Password:
    
    
    BusyBox v1.35.0 (2023-11-14 13:56:29 CET) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    [host]:~ # exit
    [host]:~ # w
    USER            TTY             IDLE    TIME             HOST
    root            pts/0           00:00   Nov 15 11:35:09  10.249.3.187
    testuser        pts/0           00:00   Nov 15 11:35:30

when the original TTY is exited, the TTY for testuser is shown as ? and seems to be cleaned up after approx. 40 seconds
(below output retrieved over serial connection)

    [host]:~ # w
    USER            TTY             IDLE    TIME             HOST
    root            ttyS0           00:00   Nov 15 11:40:01
    testuser        pts/0           ?       Nov 15 11:35:30

Sidenote: It is also unconventional/odd that the new terminal session uses the same TTY as the user from which the login was initiated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant