Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Differences between GUI terminal and console output
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
psycho
Guru
Guru


Joined: 22 Jun 2007
Posts: 553
Location: New Zealand

PostPosted: Mon Mar 31, 2025 12:46 am    Post subject: Differences between GUI terminal and console output Reply with quote

Specifically xfce4-terminal. I'm used to the simple tidy message...
Code:
su: Authentication failure
...for failed passwords. After a fresh Gentoo install I'm seeing, for the first time as far as I can recall, an ugly and (to me, at least) unnecessary additional line headed with unix_chkpwd and what looks to be a process number and then a few more words before outputting the traditional "Authentication failure" message above.

While trying to figure out why it's appeared (and, ideally, how to fix or suppress it), I noticed that I'm only seeing it on console screens (all the virtual terminals outside of the GUI)... all the consoles spit out the unix_chkpwd message in response to login failures, but it's invisible to xfce4-terminal. So, whereas I started out wondering about what had got unix_chkpwd so excited (and so was going to post this in the networking and security forum), now I'm more curious about why a message that someone thinks is important enough to output on the consoles nevertheless isn't important enough to output on the GUI terminal where people are more likely to be looking. What's the difference: what makes unix_chkpwd decide to keep quiet in the GUI, and can I use this to shut it up in the consoles too?

Now that I think about it, the fresh Gentoo also involved a new kernel...does the console/GUI difference mean that this is coming directly from the kernel rather than from unix_chkpwd?
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1673
Location: Richmond Hill, Canada

PostPosted: Mon Mar 31, 2025 2:11 am    Post subject: Reply with quote

It is likely you are seeing extra messages come from sub-process(es)'s message out to console or syslog redirect to console.

in your example the "unix_chkpwd" is another program may be direct or indirect (by PAM) called by "passwd" and the "unix_chkpwd" setup/configure to spit out error messages that got redirected to syslog which in tern redirect to console.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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