В debian пользователь должен быть включен в группу sudo
"emans" написал:
Права выставил (google сказал, что так заработает):
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
chmod 0440 /etc/sudoers
Странно. По идее этого делать не надо, при установке пакета sudo все должно выставиться автоматически.
Попробуйте переустановить пакет sudo
Интерестно а какой ID у root?
Содержание моего /etc/sudoers
text
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# 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"
# Host alias specification
# User alias specification
User_Alias STANDART_USERS = user
# Cmnd alias specification
Cmnd_Alias MUSTBE = /usr/sbin/pm-suspend, /usr/bin/apt-get update, /usr/sbin/rtcwake, /usr/bin/wvdial, /sbin/shutdown
# User privilege specification
# Разрешить выполнение команд без ввода пароля
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
#%sudo ALL=(ALL:ALL) ALL
#includedir /etc/sudoers.d
# Разрешить пользователям принадлежащим к группе sudo выполнять команды с вводом своего пароля
%sudo ALL=PASSWD: ALL
STANDART_USERS ALL = NOPASSWD: MUSTBE