sudo запрашивает пароль root, но ожидает пользователя в sudoers?

У меня включена учетная запись root. Я деградировал пользователя (скажем, Кеннет) к стандартной учетной записи, и я установил флаг Defaults rootpw в sudoers.

Когда я использую sudo, он правильно запрашивает пароль root, но затем он возвращает [!d1 ]

kenneth is not in the sudoers file. This incident will be reported.

Я задаю этот вопрос здесь (AskUbuntu), потому что у меня есть еще 3 Linux-системы, и такой же проблемы там не происходит. Есть ли какая-либо разница (любые существенные изменения, которые применяются только на Ubuntu), которые я должен знать, или я пропускаю что-то еще?

sudoers file

#
# 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    rootpw
Defaults    env_reset
Defaults    mail_badpass
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# 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

sudoers file

kenneth : kenneth cdrom dip adm plugdev lpadmin sambashare vboxusers

groups root

root : root sudo
1
задан 21 March 2014 в 16:46

0 ответов

Другие вопросы по тегам:

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