Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using ubuntu 12 and am unable to use sudo anymore (it was working a few days ago) but apparently got corrupted somehow. Below is the error I receive when I try using sudo.

sudo: unable to stat /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Besides reusing the ubuntu live cd, is there anything else I can possibly look into in order to fix this?

share|improve this question

You can manually create a sudoers file like this one:

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

You can follow this guide on how to edit / create the sudoers file.

Also, check this forum thread.

share|improve this answer
thanks - I will try both responses and revert – ali haider Oct 31 '12 at 19:02
I ended up re-installing Ubuntu. I was not entirely certain if I could place the sudoers file in the correct location without root access (I was getting permission denied errors). Most likely, an oversight on my side - thank you for responding (+1) – ali haider Nov 8 '12 at 17:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.