systemd-ask-password Command Examples

Query the user for a system password. More information: https://www.freedesktop.org/software/systemd/man/systemd-ask-password.html.

systemd-ask-password "{{message}}"

systemd-ask-password --id={{identifier}} "{{message}}"

systemd-ask-password --keyname={{key_name}} "{{message}}"

systemd-ask-password --timeout={{seconds}} "{{message}}"

systemd-ask-password --no-tty "{{message}}"

systemd-ask-password --no-output --keyname={{key_name}} "{{message}}"