Sudoer error

KenHorse

New Member
Joined
Mar 12, 2021
Messages
21
Reaction score
6
Credits
176
There was a sudo file placed in /etc/sudoers.d by a web application called "supermon". The filename is also "supermon" and the contents are:

Code:
# Cmnd alias added for Supermon 7+:
Cmnd_Alias ASTERISK = /usr/bin/top, /sbin/ifconfig, /bin/df, /usr/sbin/asterisk, \
  /bin/systemctl, /usr/local/sbin/supermon/echolookup, /usr/bin/killall, /sbin/reboot, \
  /usr/local/sbin/supermon/astlookup, /usr/local/sbin/supermon/ssinfo
User_Alias ADMINS = www-data
ADMINS ALL = NOPASSWD: ASTERISK
Defaults    !requiretty

running "sudo" returns the following:

Code:
root@repeater:~# sudo
>>> /etc/sudoers.d/supermon: Alias "ASTERISK" already defined near line 4 <<<
>>> /etc/sudoers.d/supermon: Alias "ADMINS" already defined near line 5 <<<
sudo: parse error in /etc/sudoers.d/supermon near line 4
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
root@repeater:~#

This is a Raspian (Debian) Buster Raspberry Pi.
 



Staff online


Top