2024-02-04 13:02:18 -03:00
|
|
|
# chpass
|
|
|
|
|
|
|
|
> Add or change user database information, including login shell and password.
|
|
|
|
> See also: `passwd`.
|
2025-04-21 23:01:35 +02:00
|
|
|
> More information: <https://man.openbsd.org/chpass>.
|
2024-02-04 13:02:18 -03:00
|
|
|
|
|
|
|
- Set a specific login shell for the current user interactively:
|
|
|
|
|
2025-04-25 20:20:27 +02:00
|
|
|
`doas chpass`
|
2024-02-04 13:02:18 -03:00
|
|
|
|
|
|
|
- Set a specific login [s]hell for the current user:
|
|
|
|
|
2025-04-25 20:20:27 +02:00
|
|
|
`doas chpass -s {{path/to/shell}}`
|
2024-02-04 13:02:18 -03:00
|
|
|
|
|
|
|
- Set a login [s]hell for a specific user:
|
|
|
|
|
2025-04-25 20:20:27 +02:00
|
|
|
`doas chpass -s {{path/to/shell}} {{username}}`
|
2024-02-04 13:02:18 -03:00
|
|
|
|
|
|
|
- Specify a user database entry in the `passwd` file format:
|
|
|
|
|
2025-04-25 20:20:27 +02:00
|
|
|
`doas chpass -a {{username:encrypted_password:uid:gid:...}}`
|