mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
systemd-ask-password: refresh page (#15953)
This commit is contained in:
parent
27a8dac30a
commit
fa4fe95f48
1 changed files with 11 additions and 7 deletions
|
@ -3,26 +3,30 @@
|
||||||
> Query the user for a system password.
|
> Query the user for a system password.
|
||||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemd-ask-password.html>.
|
> More information: <https://www.freedesktop.org/software/systemd/man/systemd-ask-password.html>.
|
||||||
|
|
||||||
- Query a system password with a specific message:
|
- Query a system password with a specific prompt:
|
||||||
|
|
||||||
`systemd-ask-password "{{message}}"`
|
`systemd-ask-password "{{prompt}}"`
|
||||||
|
|
||||||
- Specify an identifier for the password query:
|
- Specify an identifier for the password query:
|
||||||
|
|
||||||
`systemd-ask-password --id={{identifier}} "{{message}}"`
|
`systemd-ask-password --id {{identifier}} "{{prompt}}"`
|
||||||
|
|
||||||
- Use a kernel keyring key name as a cache for the password:
|
- Use a kernel keyring key name as a cache for the password:
|
||||||
|
|
||||||
`systemd-ask-password --keyname={{key_name}} "{{message}}"`
|
`systemd-ask-password --keyname {{key_name}} "{{prompt}}"`
|
||||||
|
|
||||||
- Set a custom timeout for the password query:
|
- Set a custom timeout for the password query:
|
||||||
|
|
||||||
`systemd-ask-password --timeout={{seconds}} "{{message}}"`
|
`systemd-ask-password --timeout {{seconds}} "{{prompt}}"`
|
||||||
|
|
||||||
- Force the use of an agent system and never ask on current TTY:
|
- Force the use of an agent system and never ask on current TTY:
|
||||||
|
|
||||||
`systemd-ask-password --no-tty "{{message}}"`
|
`systemd-ask-password --no-tty "{{prompt}}"`
|
||||||
|
|
||||||
- Store a password in the kernel keyring without displaying it:
|
- Store a password in the kernel keyring without displaying it:
|
||||||
|
|
||||||
`systemd-ask-password --no-output --keyname={{key_name}} "{{message}}"`
|
`systemd-ask-password --no-output --keyname {{key_name}} "{{prompt}}"`
|
||||||
|
|
||||||
|
- Pass the asked password to another program:
|
||||||
|
|
||||||
|
`systemd-ask-password | {{command}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue