Я настроил sudoers и дал админские права простой утилите типа /bin/rm., однако консоль всё равно просит пароль на удаление каталогов, что делать?
LinuxForum.Fans
[Решено] В чем дело? (sudo)
Автор: metallicus
5 сообщений
1212 просмотров
metallicus, покажи sudoer
# /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
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
andrey Im=NOPASSWD: /bin/mkdir, /bin/rm
# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
text
andrey ALL=(ALL) NOPASSWD: /bin/mkdir, /bin/rmВроде так
спасибо! помогли разобраться! smile smile спасибо
Войдите или зарегистрируйтесь, чтобы ответить.