You are not logged in.

#1 2018-10-25 18:04:45

Teorax
Member
Registered: 2016-11-15
Posts: 17

[SOLVED]Cannot login as user in tty

Hi,

while trying to replace my display manager I found out I am not able to login into tty as $user anymore. I know it formerly worked but it is quite some time I used it.
I have trouble finding the right place to look for errors, as there is no real error but just the last login message and a blinking prompt.

Here is the journal:

Okt 25 19:53:21 $HOSTNAME systemd[1]: Started Getty on tty3.
Okt 25 19:53:21 $HOSTNAME kernel: audit: type=1130 audit(1540490001.924:48): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Okt 25 19:53:21 $HOSTNAME audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=getty@tty3 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Okt 25 19:53:27 $HOSTNAME kernel: audit: type=1006 audit(1540490007.147:49): pid=4263 uid=0 old-auid=4294967295 auid=1000 tty=tty3 old-ses=4294967295 ses=4 res=1
Okt 25 19:53:27 $HOSTNAME login[4263]: pam_unix(login:session): session opened for user $USER by LOGIN(uid=0)
Okt 25 19:53:27 $HOSTNAME systemd-logind[538]: New session 4 of user $USER.
Okt 25 19:53:27 $HOSTNAME systemd[1]: Started Session 4 of user $USER.
Okt 25 19:53:27 $HOSTNAME login[4263]: LOGIN ON tty3 BY $USER

dmesg contains also only the audit messages.

I cannot see anything unusual in .bashrc. Where should I look further?

Thank you for your help.

Last edited by Teorax (2018-10-25 20:08:12)

Offline

#2 2018-10-25 18:18:09

loqs
Member
Registered: 2014-03-06
Posts: 19,110

Re: [SOLVED]Cannot login as user in tty

The hang is after you have entered the username and password for a none root user?  If you try root instead?

Offline

#3 2018-10-25 18:33:16

Teorax
Member
Registered: 2016-11-15
Posts: 17

Re: [SOLVED]Cannot login as user in tty

Yes, sorry.

root works fine.

After I enter user and pw, I receive the message

Last Login: Thu Oct 25 19:32:13 on tty3

or something similar depending on the time I tried last.

Offline

#4 2018-10-25 18:39:33

loqs
Member
Registered: 2014-03-06
Posts: 19,110

Re: [SOLVED]Cannot login as user in tty

If you login as root and create a new none root user.  Can the newly created user login successfully?

Offline

#5 2018-10-25 19:10:12

Teorax
Member
Registered: 2016-11-15
Posts: 17

Re: [SOLVED]Cannot login as user in tty

Yes. A newly created user can login without problem.

Offline

#6 2018-10-25 19:28:22

loqs
Member
Registered: 2014-03-06
Posts: 19,110

Re: [SOLVED]Cannot login as user in tty

If the user can login via the display manager then it would appear to be an issue with a . config file sourced on shell login.

Offline

#7 2018-10-25 19:39:57

Teorax
Member
Registered: 2016-11-15
Posts: 17

Re: [SOLVED]Cannot login as user in tty

Yes a new user can login via display manager too.
I agree it has to be something in one of the . config files.

Which ones are sourced for shell login? Can I list them?

Thank you for your help so far.

Offline

#8 2018-10-25 19:47:42

loqs
Member
Registered: 2014-03-06
Posts: 19,110

Re: [SOLVED]Cannot login as user in tty

Depends on the shell for bash see Bash#Configuration_files.

Offline

#9 2018-10-25 20:07:27

Teorax
Member
Registered: 2016-11-15
Posts: 17

Re: [SOLVED]Cannot login as user in tty

Yes thank you loqs for walking me through it.
There was a line break in .bashrc in an echo cmd that broke things. Checking line by line I found it.
Works now.

Offline

Board footer

Powered by FluxBB