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

11

2

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?

static

Posted 2013-06-09T19:34:49.203

Reputation: 1 087

Is the file there if you cd to /etc and use the ls command? – Davidw – 2013-06-09T20:34:34.603

1Is the sudo package actually installed? – Jaap Eldering – 2013-06-09T21:53:00.560

Answers

23

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

martintama

Posted 2013-06-09T19:34:49.203

Reputation: 381