я хочу изменить оболочку по умолчанию
и запустить chsh -s /bin/zshот имени пользователя root,
но сообщение об ошибке появилось: chsh: PAM authentication failed.
я нахожу эту тему http://ubuntuforums.org/showthread.php?t=1702833
но ответ не решил мою проблему
любая помощь будет оценена
это содержимое /etc/pam.d/chsh
#
# The PAM configuration file for the Shadow `chsh' service
#
# This will not allow a user to change their shell unless
# their current one is listed in /etc/shells. This keeps
# accounts with special shells from changing them.
auth required pam_shells.so
# This allows root to change user shell without being
# prompted for a password
auth sufficient pam_rootok.so
# The standard Unix authentication modules, used with
# NIS (man nsswitch) as well as normal /etc/passwd and
# /etc/shadow entries.
@include common-auth
@include common-account
@include common-session
это содержимое / etc / shells
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/tmux
/usr/bin/screen
/bin/zsh
/usr/bin/zsh
я нахожу, что я использовал для запуска chsh -s zsh
это изменит первую строку /etc/passwdкак
root:x:0:0:root:/root:zsh
и chshпопросит пароль, что бы вы ни пытались
Я просто редактирую /etc/passwdфайл вручную, и все в порядке.
глупая ошибка и спасибо за ваши ответы