2025-03-14 21:59:59 -06:00
|
|
|
# chpass
|
|
|
|
|
|
|
|
|
|
> Add or change user database information, including login shell and password.
|
|
|
|
|
> See also: `passwd`.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://man.openbsd.org/chpass>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set a specific login shell for the current user interactively:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`doas chpass`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set a specific login [s]hell for the current user:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`doas chpass -s {{path/to/shell}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set a login [s]hell for a specific user:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`doas chpass -s {{path/to/shell}} {{username}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify a user database entry in the `passwd` file format:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`doas chpass -a {{username:encrypted_password:uid:gid:...}}`
|