8 апреля 2021
Oracle Linux, CentOS -bash: chsh: команда не найдена
Смотрим дистрибутив:
1
2
|
$cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
|
Собственно ошибка возникает в момент попытки выполнить:
1
2
|
$ chsh
-bash: chsh: команда не найдена
|
Смотрим возможного провайдера:
1
|
$ dnf provides '*/chsh'
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Последняя проверка окончания срока действия метаданных: 0:04:55 назад, Чт 08 апр 2021 00:47:04.
util-linux-user-2.32.1-8.el8.x86_64 : libuser based util-linux utilities
Репозиторий : ol8_baseos_latest
Совпадения с:
Имя файла : /etc/pam.d/chsh
Имя файла : /usr/bin/chsh
Имя файла : /usr/share/bash-completion/completions/chsh
util-linux-user-2.32.1-17.el8.x86_64 : libuser based util-linux utilities
Репозиторий : ol8_baseos_latest
Совпадения с:
Имя файла : /etc/pam.d/chsh
Имя файла : /usr/bin/chsh
Имя файла : /usr/share/bash-completion/completions/chsh
util-linux-user-2.32.1-22.el8.x86_64 : libuser based util-linux utilities
Репозиторий : ol8_baseos_latest
Совпадения с:
Имя файла : /etc/pam.d/chsh
Имя файла : /usr/bin/chsh
Имя файла : /usr/share/bash-completion/completions/chsh
util-linux-user-2.32.1-24.el8.x86_64 : libuser based util-linux utilities
Репозиторий : ol8_baseos_latest
Совпадения с:
Имя файла : /etc/pam.d/chsh
Имя файла : /usr/bin/chsh
Имя файла : /usr/share/bash-completion/completions/chsh
|
Cтавим
1
|
util-linux-user
|
:
1
|
$dnf install util-linux-user
|
Проверяем результат:
1
2
|
$chsh -v
chsh из util-linux 2.32.1
|
Далее можно изменить оболочку по умолчанию например bash на fish
1
|
chsh -s /usr/bin/fish
|
Об оболочке fish и установке можно посмотреть здесь