[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LUKS password gets printed as stars



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Dec 19, 2017 at 11:04:38PM +0530, root kea wrote:

[...]

> Thanks for the apt-file tip. I was hoping to find systemd-ask-password
> command execution in this file so that I could omit `--echo` switch
> (I'm thinking it's there as user input is echoed by default).
> 
> But instead systemd-tty-ask-password-agent [0] gets executed from that
> file which doesn't accept `--echo` as a flag. Here is the full
> contents of systemd-ask-password-console.service file [1]

Seems you are out of luck. Using the wonderful Debian code search:

  https://sources.debian.org/src/systemd/236-1/src/shared/ask-password-api.c/?hl=386#L380

it seems the password entry routine either prints each of the
password's characters in clear (&c) when the ASK_PASSWORD_ECHO
is set, or it prints a star "*" otherwise.

So you might try to write your own agent, or file a wishlist
bug.

But perhaps I'm overlooking something. After all, I'm the absolutely
wrong person to answer questions about systemd...

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlo5WjcACgkQBcgs9XrR2kb9lwCeOtdahCQn50OP/XkVbDiEXMp0
8e8AnjXFg3WA1oz3ZVyGt6WW2baMwyUq
=zD5Y
-----END PGP SIGNATURE-----


Reply to: