You are not logged in.

#1 2020-07-20 12:23:51

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

[SOLVED] Can't login to tty on getty

GUI session works just fine, however when i try to login on a tty i get

Jul 18 23:21:37 bleg login[3632612]: pam_systemd(login:session): Failed to create session: Transport endpoint is not connected
Jul 18 23:21:37 bleg login[3632612]: Cannot make/remove an entry for the specified session

Tried with various users, with and without password, nothing seems to work.

Last edited by Maki (2020-07-20 19:27:15)


If it ain't broke, broke it then fix it.

Offline

#2 2020-07-20 13:15:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,692

Re: [SOLVED] Can't login to tty on getty

https://bugs.archlinux.org/task/66397 ?
(Multiple instances of dhcpcd)

Otherwise please post your complete system journal to add some context to the error (could also be a mounting issue, maybe systemd-homed?)

Offline

#3 2020-07-20 14:34:33

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: [SOLVED] Can't login to tty on getty

Thank you!
Here is my full log, btw i don't run dhcpcd or systemd-homed

Jul 20 16:31:07 bleg audit: PROCTITLE proctitle=2F62696E2F6C6F67696E002D70002D2D0020202020
Jul 20 16:31:07 bleg login[3935709]: pam_unix(login:session): session opened for user doda by LOGIN(uid=0)
Jul 20 16:31:07 bleg systemd-logind[683]: New session 34 of user doda.
Jul 20 16:31:07 bleg systemd[1]: Started Session 34 of user doda.
Jul 20 16:31:07 bleg login[3935709]: pam_systemd(login:session): Failed to create session: Transport endpoint is not connected
Jul 20 16:31:07 bleg audit[3935709]: USER_START pid=3935709 uid=0 auid=1000 ses=34 msg='op=PAM:session_open grantors=? acct="doda" exe="/usr/bin/login" hostname=bleg addr=? t>
Jul 20 16:31:07 bleg audit[3935709]: CRED_DISP pid=3935709 uid=0 auid=1000 ses=34 msg='op=PAM:setcred grantors=pam_securetty,pam_tally2,pam_shells,pam_unix,pam_permit acct="d>
Jul 20 16:31:07 bleg login[3935709]: Cannot make/remove an entry for the specified session
Jul 20 16:31:09 bleg kcminit[3961487]: Initializing  "kcm_mouse" :  "kcminit_mouse"
Jul 20 16:31:09 bleg kcminit[3961494]: Initializing  "kcm_mouse" :  "kcminit_mouse"
Jul 20 16:31:10 bleg systemd[1]: getty@tty2.service: Succeeded.
Jul 20 16:31:10 bleg audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? te>
Jul 20 16:31:10 bleg systemd[1]: session-34.scope: Succeeded.
Jul 20 16:31:10 bleg systemd[1]: getty@tty2.service: Scheduled restart job, restart counter is at 13.
Jul 20 16:31:10 bleg systemd[1]: Stopped Getty on tty2.
Jul 20 16:31:10 bleg audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? t>
Jul 20 16:31:10 bleg audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? te>
Jul 20 16:31:10 bleg systemd[1]: Started Getty on tty2.
Jul 20 16:31:10 bleg audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? t>
Jul 20 16:31:10 bleg systemd-logind[683]: Removed session 34.

If it ain't broke, broke it then fix it.

Offline

#4 2020-07-20 14:53:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,692

Re: [SOLVED] Can't login to tty on getty

More like "sudo journalctl -b | curl -F 'f:1=<-' ix.io" (full journal of the boot and also redirect it into a pastebin service, the pager capped the output)
The error is likely before the login attempt (failing logind for whatever reason)

Also "pacman -Qikk pambase pam" and "ls -l /etc/pam.d/" as a sanity check.

Offline

#5 2020-07-20 16:13:50

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: [SOLVED] Can't login to tty on getty


If it ain't broke, broke it then fix it.

Offline

#6 2020-07-20 17:45:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,692

Re: [SOLVED] Can't login to tty on getty

backup file: pambase: /etc/pam.d/system-auth (Size mismatch)

Contents of that file?

The journal doesn't cover a failed login, does it?

Offline

#7 2020-07-20 18:22:05

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: [SOLVED] Can't login to tty on getty

Ah, sorry about that, yes journalctl -b doesn't show errors related to login.
I moved the file  /etc/pam.d/system-auth file and reinstalled pam. Now login to tty works! Thank you a lot
Here is the old file: https://termbin.com/rce7
Here is the diff: https://termbin.com/hyvz


If it ain't broke, broke it then fix it.

Offline

#8 2020-07-20 19:04:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,692

Re: [SOLVED] Can't login to tty on getty

Yeah, that explains it.
Any idea what happened to the file? (to prevent this from showing up again)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#9 2020-07-20 20:23:38

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: [SOLVED] Can't login to tty on getty

I have no idea, that line existed in the file even in 2015 according to etckeeper


If it ain't broke, broke it then fix it.

Offline

Board footer

Powered by FluxBB