You are not logged in.

#1 2019-05-17 21:18:46

Jont828
Member
Registered: 2018-01-12
Posts: 32

Strange hex dump output in sudo password prompt?

I've been having a strange issue where when I got into the TTY console and use any sudo command, it prompts me for my password and then outputs some strange text that looks a lot like a hex dump. Does anyone know where this output is coming from? Here's a screenshot of what I mean. Thanks1

Last edited by Jont828 (2019-05-17 21:26:04)

Offline

#2 2019-05-17 21:48:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,532
Website

Re: Strange hex dump output in sudo password prompt?

Any command?  Your screenshot shows your `sudo fbcat` command where the output obviously didn't corrupt the stdout or you'd not have that screenshot to post.  It's not apparent from stderr either, unless it came out only after the screenshot was saved.

Is the output always the same, or does it depend on what command is used?

Can you post the output of the following:

type sudo
pacman -Qkk sudo
sudo grep '^[^#]' /etc/sudoers

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2019-05-17 21:55:57

seth
Member
Registered: 2012-09-03
Posts: 51,270

Re: Strange hex dump output in sudo password prompt?

The second sudo has no pw prompt.
Does the output come before or after you enter the password?

The magic byte matches .ico, ie. an icon. Can you dumpt the output as text?
("sudo foo > text 2>&1")

Offline

#4 2019-05-18 00:23:59

Jont828
Member
Registered: 2018-01-12
Posts: 32

Re: Strange hex dump output in sudo password prompt?

Thanks for the replies! Mean to say that when it when it prompts me with "[sudo] password for jtong," and the output isn't sent to a file, the hex dump thing comes.

When I ran `pacman -Qkk` I got a problem with a file size mismatch. Here's a screenshot. Also, here should be the output.

0000 00 00 01 00 01 00 08 00  dd a6 4e 57 01 00 34 46  | ..........NW..4F
0010 02 00 07 00 60 39 00 00  01 00 84 08 01 00 07 00  | ....`9..........
0020 00 04 00 00 02 00 84 28  03 00 12 00 e0 10 00 00  | .......(........
0030 02 00 76 36 01 00 0c 00  10 0a 00 00 01 00 86 47  | ..v6...........G
0040 00 00 01 00 50 5a 00 00  02 00 23 77 00 00 01 00  | ....PZ....#w....
0050 80 2f 00 00 02 00 66 37  01 00 0c 00 f0 22 02 00  | ./....f7....."..
0060 01 00 25 56 00 00 01 00  70 04 00 00              | ..%V....p...

Offline

#5 2019-05-18 00:28:42

loqs
Member
Registered: 2014-03-06
Posts: 17,375

Re: Strange hex dump output in sudo password prompt?

What is the contents of /etc/pam.d/sudo ?

Offline

#6 2019-05-18 01:07:42

Jont828
Member
Registered: 2018-01-12
Posts: 32

Re: Strange hex dump output in sudo password prompt?

Just this

#%PAM-1.0
auth		sufficient	pam_fingerprint-gui.so
auth		include		system-auth
account		include		system-auth
session		include		system-auth

Offline

#7 2019-05-18 01:32:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,532
Website

Re: Strange hex dump output in sudo password prompt?

And if you comment out the fingerprint-gui line?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2019-05-19 19:38:26

Jont828
Member
Registered: 2018-01-12
Posts: 32

Re: Strange hex dump output in sudo password prompt?

Thanks! That seems to have done the trick! Do you know if I need to fix the time-stamp and file size mismatch on /etc/pam.d/sudo and /etc/sudoers?

Offline

#9 2019-05-19 19:45:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,532
Website

Re: Strange hex dump output in sudo password prompt?

No, it's expected that those files have changed if you've configued sudo.  In fact the change to the pam file is documented in the wiki as one of the steps to using a fingerprint reader - yours just doesn't seem to be working properly.  It's likely - given that seth suggested that's an .ico file - that fingerprint image data is getting dumped somehow.  Unfortunately I have *zero* experience with fingerprint readers.

Are you even trying to use the fingerprint reader?  You said you are entering a password.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2019-05-20 20:53:58

Jont828
Member
Registered: 2018-01-12
Posts: 32

Re: Strange hex dump output in sudo password prompt?

I tried to configure fingerprint login a while back for Gnome shell but it didn't seem to work. I guess it must have modified some files.

Offline

Board footer

Powered by FluxBB