Всем привет, подскажите что может быть и как исправить, Убунта 20.04, такая проблема: Внезапно вдруг, ни с того ни с сего перестало выполняться sudo, ничего не менял не удалял не устанавливал не правил и вдруг:
$sudo любая команда
При этом не происходит запроса пароля как раньше а сразу выдает:
Sorry, try again.
Sorry, try again.
sudo: 3 incorrect password attempts
при попытке открыть сессиию root в терминале, путём ввода su в ответ выкидывает:
su: Authentication failure
Много гуглил но однозначного решения проблемы не нашел, там люди любо криво прописывали чтото в sudoers либо в /etc/pam.d я ни туда ни туда не лазил и там все норм:
sudoers:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
Defaults targetpw
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
в /etc/pam.d/sudo тоже вроде всё по дефолту:
#%PAM-1.0
session required pam_env.so readenv=1 user_readenv=0
session required pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0
@include common-auth
@include common-account
@include common-session-noninteractive