sudoers

Luis Mondesi lemsx1 at gmail.com
Fri May 16 13:50:20 UTC 2014


> On May 16, 2014, at 4:23, Tamas Papp <tompos at martos.bme.hu> wrote:
> 
> 
>> On 05/16/2014 09:19 AM, Andrea Corbellini wrote:
>> Actually, you are supposed to create a new file in /etc/sudoers.d for
>> custom rules. You shouldn't edit /etc/sudoers directly; this will
>> ensure that package upgrades can happen without asking you any
>> question about the changes you made to that file.
> 
> If you edit sudoers via visudo there is a syntax checking.
> If you do something wrong in /etc/sudoers.d/a, there is no syntax
> checking and the your user gets locked out:
> 
> $ sudo -i
>>>> /etc/sudoers.d/a: syntax error near line 1 <<<
> sudo: parse error in /etc/sudoers.d/a near line 1
> sudo: no valid sudoers sources found, quitting
> sudo: unable to initialize policy plugin

Ugh? Then use visudo to change sudoers so you learn the proper syntax and copy/paste to /etc/sudoers.d/a. After doing one file you should be able to remember the syntax ...



More information about the Ubuntu-devel-discuss mailing list