sudo: /etc/sudoers.d is not a regular file

If you make use of the sudoers.d directory, make sure to have it included in /etc/sudoers.d/

Edit your sudoers file with visudo and add the right option :

#includedir /etc/sudoers.d

Make sure to write this line as it is. The # sign is compulsory. Here, it does not stand for commenting a line.
Otherwise, you will get this error :

sudo: /etc/sudoers.d is not a regular file
sudo: parse error in /etc/sudoers near line 69
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.