Когда Я запускаю `sudo passwd`, устанавливаю свой пароль, и сценарий завершается нормально. Запуск` sudo chsh -s / bin / bash` сразу после сбоя

Long time lurk эээ, первый плакат.

Мой Linux-сервер ведет себя странно. Когда я запускаю sudo passwd , я могу правильно установить свой пароль. Однако, если я запускаю sudo chsh -s / bin / bash , команда возвращает ошибку:

chsh: PAM: Authentication failure

Когда я запускаю sudo echo "hi" , я получаю как результат:

hi

Я могу предоставить более подробную информацию, если потребуется. Я повторил этот шаг трижды и на 100% уверен, что набираю пароль правильно.

$ cat / etc / * release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Спасибо!

снимок экрана терминала

0
задан 16 May 2021 в 00:50
1 ответ

Я тупой $ sudo passwd alexander

You can now choose the new password or passphrase.

A valid password should be a mix of upper and lower case letters,
digits, and other characters.  You can use a 12 character long
password with characters from at least 3 of these 4 classes, or
an 8 character long password containing characters from all the
classes.  An upper case letter that begins the password and a
digit that ends it do not count towards the number of character
classes used.

A passphrase should be of at least 3 words, 16 to 40 characters
long, and contain enough different characters.

Alternatively, if no one else can see your terminal now, you can
pick this as your password: "claw5Met8sword".

Enter new password:
Re-type new password:
passwd: password updated successfully

За ним следует $ chsh -s / bin / bash

1
ответ дан 28 July 2021 в 14:07

Теги

Похожие вопросы