Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot login from tty while can login with xfreerdp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
guyuming
Apprentice
Apprentice


Joined: 19 Nov 2020
Posts: 235

PostPosted: Thu Mar 04, 2021 3:55 am    Post subject: cannot login from tty while can login with xfreerdp Reply with quote

my desktop use gentoo with systemd.

i disabled the display managers (sddm,gdm), and start desktop environment by running startx in tty.

i installed net-misc/xrdp package from the ace overlay recently.

all of a sudden, after reboot, i cannot login tty anymore, even with the root account.

but i can login with xfreerdp from other machine.

i don't mean that xrdp cause the problem, that can be just a coincident, i only modified ~/.xinitrc, ~/.xprofile files manually after xrdp installation, i don't think it will affect tty login.

i read some similar case on web which talks about reviewing the /var/log/messages and /var/log/secure, but i don't have these files on my machine.

after i input username and password, tty just refreshes the screen and let me input again, no error messages displayed.

sudo journalctl -b | tail

return no error too, just what follows:
Code:
3月 04 12:01:33 gymDeskGentoo systemd[1]: getty@tty2.service: Succeeded.
3月 04 12:01:33 gymDeskGentoo systemd[1]: getty@tty2.service: Scheduled restart job, restart counter is at 3.
3月 04 12:01:33 gymDeskGentoo systemd[1]: Stopped Getty on tty2.
3月 04 12:01:33 gymDeskGentoo systemd[1]: Started Getty on tty2.





what can be wrong? how to investigate?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Thu Mar 04, 2021 8:07 pm    Post subject: Reply with quote

If you did a system update recently and pam got upgraded, you might want to ensure your etc-update is up to date especially in your /etc/pam.d/* .

But yes most of your logs should be in the journal and visible with journalctl - and not in /var/log/(messages|secure).
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
guyuming
Apprentice
Apprentice


Joined: 19 Nov 2020
Posts: 235

PostPosted: Sat Mar 06, 2021 7:02 am    Post subject: Reply with quote

eccerr0r wrote:
ensure your etc-update is up to date especially in your /etc/pam.d/* .


I found the direct cause:

i had built the sys-apps/util-linux package with CFLAGS -pg in https://forums.gentoo.org/viewtopic-t-1131207-highlight-.html

after removing the -pg flag, and re-emerge the package, tty login works now!

but i don't understand why this can cause tty login fail. I only know that with -pg, many common commands will result in a gmon.out file in current directly, some times no permission in current directory. But root user also cannot sign in tty.

Anyway, i don't know how to ensure etc-update is up to date, i know few about this, i usually use dispatch-conf to unmask packages.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum