LinuxForum.Fans
Тема

[Решено] В чем дело? (sudo)

Автор: metallicus 5 сообщений 1212 просмотров
#40609

Я настроил sudoers и дал админские права простой утилите типа /bin/rm., однако консоль всё равно просит пароль на удаление каталогов, что делать?

#40611

metallicus, покажи sudoer

#40612

# /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

#40619
text
andrey ALL=(ALL) NOPASSWD: /bin/mkdir, /bin/rm

Вроде так

#40625

спасибо! помогли разобраться! smile smile спасибо

Войдите или зарегистрируйтесь, чтобы ответить.