Server Fault is a question and answer site for system and network administrators. 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

In Debian 6, right after my installation. I try to run a command as root, only to find out that my account isn't in the sudoers file. This is from the main user account that is set up under installation.

I have install Debian 6 as a virtual machine under VMware Workstation.

share|improve this question
up vote 2 down vote accepted

When you install the server and create the original user, you have the option to choose what groups the user should be in. That's where you need to add that user to the group that's allowed to run sudo. For most Unix systems, that group is called wheel, or possibly sudo.

Since you didn't do that from the start, you will need to log in as root, edit the file /etc/groups and add your username to the correct group.

There's some more information about sudo on debian at the Debian wiki.

share|improve this answer

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.