Why there is no sudoers file: "/etc/sudoers: No such file or directory"?

37,685

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:
37,685

Related videos on Youtube

static
Author by

static

Updated on September 18, 2022

Comments

  • static
    static over 1 year

    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?

    • Davidw
      Davidw almost 11 years
      Is the file there if you cd to /etc and use the ls command?
    • Jaap Eldering
      Jaap Eldering almost 11 years
      Is the sudo package actually installed?