Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to add a new admin user, but:

# adduser username admin
  adduser: The user `username' does not exist.
# man sudoers
  No manual entry for sudoers
# less /etc/sudoers
  /etc/sudoers: No such file or directory

The system is Debian 7 (Wheezy) What I'm doing wrong?

share|improve this question
    
Is the file there if you cd to /etc and use the ls command? –  Davidw Jun 9 '13 at 20:34
1  
Is the sudo package actually installed? –  eldering Jun 9 '13 at 21:53
add comment

1 Answer

up vote 4 down vote accepted

Sudo is not installed by default on Debian systems. You should issue as root:

apt-get install sudo

Other than that, adding a new user with a default group is done with:

useradd -G groupname username

share|improve this answer
add comment

Your Answer

 
discard

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.