Skip to content

systemd-ask-password echos password as asterisk (*) chars while decrypting LUKS partition #8495

@rootkea

Description

@rootkea

Submission type

  • Bug report

systemd version the issue has been seen with

systemd 232

Used distribution

Debian

In case of bug report: Expected behaviour you didn't see

systemd-ask-password should echo nothing by default.

In case of bug report: Unexpected behaviour you saw

Password gets echoed to screen as asterisk (*) characters. Echoing asterisk characters on screen is not at all consistent behavior with the traditional *Nix password handling. Here is the screenshot [0].

In case of bug report: Steps to reproduce the problem

I have encrypted swap and /home. When the system starts it asks password to
decrypt swap. The password doesn't get echoed at all. Totally expected
behavior.

But then it loads the kernel and systemd takes over. And systemd-ask-password
(I think as plymouth is not installed) asks the password to decrypt /home. And
this time password gets echoed to screen as asterisk (*) characters.

[0] https://imgur.com/bC4AF6H

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions