Managing Credentials
Manage an account's credential material and its permitted methods as two
separate steps. Adding a password or public key does not change which methods
lpsd accepts for that account.
Before you start #
Prepare an alternate access route:
- Use an administrator session for these
lpscommands. - Keep a working administrator route open while changing another route. Verify a fresh sign-in before closing it.
Inspect the account first:
Replace alice with the account name. Credential policy selects the accepted
proof:
| Policy | Accepted proof | Required material |
|---|---|---|
password | Password | Stored password verifier |
key | SSH public-key proof | Enrolled public key |
either | Password or SSH public-key proof | Material for the chosen method |
none | No credential | None |
denied | No accepted method | None |
Missing material does not cause a fallback to another method. The client and
authority also constrain which method and kind of logon are allowed. The
terminal login client cannot perform an SSH public-key exchange.
Require a password #
Follow these steps:
-
Set the password through the prompt, keeping it out of command history:
-
Select password authentication:
-
Inspect
lps show alice, then verify a fresh sign-in with that password.
Both steps are needed when replacing none policy. Setting the password alone
leaves credential-free sign-in permitted.
Add a public key #
Follow these steps:
-
Enroll the public key file:
Replace the path with a public key file.
workstationis a descriptive label. Do not supply a private key. Supported keys and input restrictions are documented inlps(1). -
Inspect
lps key list aliceand compare the fingerprint with the key you intended to enroll. -
If password access must remain available while checking the key, select both methods:
-
Verify a fresh connection through an SSH service configured to use this authority. Only after that check, use
lps policy alice keyif the account must accept keys exclusively.
Enrolling a key does not configure an SSH server or make one reachable.
Remove a key #
Follow these steps:
- Run
lps key list aliceand identify the key to remove. - Pass its listed key ID to
lps key remove alice <key-id>. - Inspect the list again and verify the remaining sign-in route.
The administrative command takes the key ID, not its fingerprint. The public library's self-service removal operation takes a fingerprint; do not interchange the two interfaces.
Removing a key or changing policy invalidates pending SSH key proofs but does not end existing sessions. Stopping active access is a separate session operation.
Self-service changes #
A person changing their own password or keys uses an authentication
conversation through authd, rather than the administrative socket. lpsd
requires an accepted current password for these operations. An account with
only a key, no credential, or no stored password needs an administrator's
help.
Application authors can use the self-service client operations.