2015-10-22 08:31:52 +01:00
|
|
|
# chsh
|
2014-04-28 12:40:00 +01:00
|
|
|
|
2023-01-09 16:35:58 +00:00
|
|
|
> Change user's login shell.
|
2021-04-12 07:54:04 +01:00
|
|
|
> More information: <https://manned.org/chsh>.
|
2014-04-28 12:40:00 +01:00
|
|
|
|
2023-01-09 16:35:58 +00:00
|
|
|
- Set a specific login shell for the current user interactively:
|
2014-04-28 12:40:00 +01:00
|
|
|
|
2021-09-21 18:01:49 +01:00
|
|
|
`chsh`
|
|
|
|
|
2023-01-09 16:35:58 +00:00
|
|
|
- Set a specific login [s]hell for the current user:
|
2021-09-21 18:01:49 +01:00
|
|
|
|
2022-02-24 12:42:34 +00:00
|
|
|
`chsh -s {{path/to/shell}}`
|
2022-02-17 04:36:58 +00:00
|
|
|
|
2023-01-09 16:35:58 +00:00
|
|
|
- Set a login [s]hell for a specific user:
|
2022-02-17 04:36:58 +00:00
|
|
|
|
2022-02-24 12:42:34 +00:00
|
|
|
`chsh -s {{path/to/shell}} {{username}}`
|
2021-09-21 18:01:49 +01:00
|
|
|
|
2023-01-09 16:35:58 +00:00
|
|
|
- [l]ist available shells:
|
2021-09-21 18:01:49 +01:00
|
|
|
|
2023-01-09 16:35:58 +00:00
|
|
|
`chsh -l`
|