Page 1 of 1

/etc/sudoers overwritten

Posted: Wed Mar 08, 2017 10:40 am
by alainmicro

I would like to add to the mailcleaner user a full access to some new programs.

I've tried to edit /etc/sudoers but this file seems to be overwritten at every restart.

Is there a way to solve that ?

Re: /etc/sudoers overwritten

Posted: Wed Mar 08, 2017 4:34 pm
by FlorianB

Code: Select all

mailcleaner:~$ grep -Hrni 'sudoers' /usr/mailcleaner/
/usr/mailcleaner/etc/init.d/apache:86:    sudofile=/usr/sudo/etc/sudoers

I would begin by searching in this file ;-) Probably comment line 90 to 118, but re-check as could not have same exact version. Check for consequences too but i would risk to say this code was here as a security measure against manual right modifications.