Sudo complains “is not in the sudoers file”
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I try to install Chrome and Skype on Debian.
When I'm trying to install from the terminal, or log in as administrator, even when I type the correct password, every time I receive a error.
What am I doing wrong?
ravenous is not in the sudoers file. This incident will be reported.
sudo
add a comment |
up vote
1
down vote
favorite
I try to install Chrome and Skype on Debian.
When I'm trying to install from the terminal, or log in as administrator, even when I type the correct password, every time I receive a error.
What am I doing wrong?
ravenous is not in the sudoers file. This incident will be reported.
sudo
5
Please do not post screenshots of text. Copy-paste the text. Screenshots are hard to read and cannot be searched.
– Gilles
Jul 12 '15 at 13:15
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I try to install Chrome and Skype on Debian.
When I'm trying to install from the terminal, or log in as administrator, even when I type the correct password, every time I receive a error.
What am I doing wrong?
ravenous is not in the sudoers file. This incident will be reported.
sudo
I try to install Chrome and Skype on Debian.
When I'm trying to install from the terminal, or log in as administrator, even when I type the correct password, every time I receive a error.
What am I doing wrong?
ravenous is not in the sudoers file. This incident will be reported.
sudo
sudo
edited Jul 12 '15 at 13:13
Gilles
519k12410351565
519k12410351565
asked Jul 12 '15 at 10:30
Mihai Szabo
1212
1212
5
Please do not post screenshots of text. Copy-paste the text. Screenshots are hard to read and cannot be searched.
– Gilles
Jul 12 '15 at 13:15
add a comment |
5
Please do not post screenshots of text. Copy-paste the text. Screenshots are hard to read and cannot be searched.
– Gilles
Jul 12 '15 at 13:15
5
5
Please do not post screenshots of text. Copy-paste the text. Screenshots are hard to read and cannot be searched.
– Gilles
Jul 12 '15 at 13:15
Please do not post screenshots of text. Copy-paste the text. Screenshots are hard to read and cannot be searched.
– Gilles
Jul 12 '15 at 13:15
add a comment |
5 Answers
5
active
oldest
votes
up vote
5
down vote
Add an entry into /etc/sudoers
to permit user ravenous to run dpkg as root.
See man page for sudo
for more detail.
4
Usevisudo
to edit the file.
– deltab
Jul 12 '15 at 18:23
add a comment |
up vote
2
down vote
There are two common ways to execute commands as the administrator: with su or with sudo. The su command requires the root password, and can be used by any user who knows the root password. The sudo command asks for your own password, and can only be used by users who have been authorized by the administrator. (Both commands can be configured differently, I'm describing the default configuration.)
If you set a root password during installation, then you can use su
to run commands as root, for example
su -c 'dpkg -i google-chrome*deb'
If you want to use sudo, you'll first need to your account to the list of users allowed to use it. Under Debian, all users in the group called sudo
can run any command as any user via the sudo
command. So add your account to the sudo
group:
su -c 'addgroup ravenous sudo'
You can do that through the GUI (in the “Users” settings tool) if you prefer. Group assignments take effect when you log in, so you'll need to log out and back in.
add a comment |
up vote
1
down vote
Log into root with the su command.
check your users groups with the command "groups ravenous" (note groups)
edit /etc/sudoers with, for example nano or vi "vi /etc/sudoers" scroll down to the part where you see groups that are uncommented (no # in front) and see if you are in that group (which your obviously are not)
if any group is allowed you need to add your user to the group. if you cant see any uncommented groups, you need to uncomment a group.
Uncomment:
if using vi, press i for insert, move with keypads to the # in front of the group you need to uncomment, remove the hashtag.
press esc and type :wq! to write and quit.
Now, you add your user to the group:
usermod -a -G wheel ravenous (add ravenous to group wheel)
Log out as root, log out as ravenous, log back in. Or reboot if u'd like that.
9
Don't edit/etc/sudoers
directly! Run the commandvisudo
.
– Gilles
Jul 12 '15 at 13:14
Indeed, better to use visudo.
– Philip Wiberg
Jul 13 '15 at 13:28
add a comment |
up vote
0
down vote
Or simply add ravenous to the sudo group. Login as root or use su. Then to add the user to the sudo group use this:
usermod -aG sudo ravenous
A default install of the sudo package on most Linux systems already have the group sudo setup for access (I know debian does as thats what I use myself), so simply adding any username to that group will grant access to use sudo. Also you will need to relogin for the change to take affect.
It wouldn't work if the logged-in user just typednewgrp sudo
?
– Jeff Schaller
Jul 12 '15 at 15:36
hmm, good question, I am unsure whether that will make the new sudo group your default, or just add it as another group your belong to. Reading the man for this seems to indicate that would work though.
– dakka
Jul 13 '15 at 0:09
add a comment |
up vote
0
down vote
How to add user to the list of sudo users.
(Debian 9 Stretch)
First. From terminal, type: visudo
Find:
# User privilege specification
root ALL=(ALL:ALL) ALL
Directly underneath these lines, add your user name:
# User privilege specification
root ALL=(ALL:ALL) ALL
newName ALL=(ALL:ALL) ALL
Exit visudo:
ctrl
+ x
Save changes to file:
Y
Enter.
Reboot.
New terminal:
$ sudo apt-get update
At prompt, type password
Finished. You should now be using a 'regular' account user with sudo privileges.
add a comment |
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
Add an entry into /etc/sudoers
to permit user ravenous to run dpkg as root.
See man page for sudo
for more detail.
4
Usevisudo
to edit the file.
– deltab
Jul 12 '15 at 18:23
add a comment |
up vote
5
down vote
Add an entry into /etc/sudoers
to permit user ravenous to run dpkg as root.
See man page for sudo
for more detail.
4
Usevisudo
to edit the file.
– deltab
Jul 12 '15 at 18:23
add a comment |
up vote
5
down vote
up vote
5
down vote
Add an entry into /etc/sudoers
to permit user ravenous to run dpkg as root.
See man page for sudo
for more detail.
Add an entry into /etc/sudoers
to permit user ravenous to run dpkg as root.
See man page for sudo
for more detail.
answered Jul 12 '15 at 10:47
steve
13.6k22452
13.6k22452
4
Usevisudo
to edit the file.
– deltab
Jul 12 '15 at 18:23
add a comment |
4
Usevisudo
to edit the file.
– deltab
Jul 12 '15 at 18:23
4
4
Use
visudo
to edit the file.– deltab
Jul 12 '15 at 18:23
Use
visudo
to edit the file.– deltab
Jul 12 '15 at 18:23
add a comment |
up vote
2
down vote
There are two common ways to execute commands as the administrator: with su or with sudo. The su command requires the root password, and can be used by any user who knows the root password. The sudo command asks for your own password, and can only be used by users who have been authorized by the administrator. (Both commands can be configured differently, I'm describing the default configuration.)
If you set a root password during installation, then you can use su
to run commands as root, for example
su -c 'dpkg -i google-chrome*deb'
If you want to use sudo, you'll first need to your account to the list of users allowed to use it. Under Debian, all users in the group called sudo
can run any command as any user via the sudo
command. So add your account to the sudo
group:
su -c 'addgroup ravenous sudo'
You can do that through the GUI (in the “Users” settings tool) if you prefer. Group assignments take effect when you log in, so you'll need to log out and back in.
add a comment |
up vote
2
down vote
There are two common ways to execute commands as the administrator: with su or with sudo. The su command requires the root password, and can be used by any user who knows the root password. The sudo command asks for your own password, and can only be used by users who have been authorized by the administrator. (Both commands can be configured differently, I'm describing the default configuration.)
If you set a root password during installation, then you can use su
to run commands as root, for example
su -c 'dpkg -i google-chrome*deb'
If you want to use sudo, you'll first need to your account to the list of users allowed to use it. Under Debian, all users in the group called sudo
can run any command as any user via the sudo
command. So add your account to the sudo
group:
su -c 'addgroup ravenous sudo'
You can do that through the GUI (in the “Users” settings tool) if you prefer. Group assignments take effect when you log in, so you'll need to log out and back in.
add a comment |
up vote
2
down vote
up vote
2
down vote
There are two common ways to execute commands as the administrator: with su or with sudo. The su command requires the root password, and can be used by any user who knows the root password. The sudo command asks for your own password, and can only be used by users who have been authorized by the administrator. (Both commands can be configured differently, I'm describing the default configuration.)
If you set a root password during installation, then you can use su
to run commands as root, for example
su -c 'dpkg -i google-chrome*deb'
If you want to use sudo, you'll first need to your account to the list of users allowed to use it. Under Debian, all users in the group called sudo
can run any command as any user via the sudo
command. So add your account to the sudo
group:
su -c 'addgroup ravenous sudo'
You can do that through the GUI (in the “Users” settings tool) if you prefer. Group assignments take effect when you log in, so you'll need to log out and back in.
There are two common ways to execute commands as the administrator: with su or with sudo. The su command requires the root password, and can be used by any user who knows the root password. The sudo command asks for your own password, and can only be used by users who have been authorized by the administrator. (Both commands can be configured differently, I'm describing the default configuration.)
If you set a root password during installation, then you can use su
to run commands as root, for example
su -c 'dpkg -i google-chrome*deb'
If you want to use sudo, you'll first need to your account to the list of users allowed to use it. Under Debian, all users in the group called sudo
can run any command as any user via the sudo
command. So add your account to the sudo
group:
su -c 'addgroup ravenous sudo'
You can do that through the GUI (in the “Users” settings tool) if you prefer. Group assignments take effect when you log in, so you'll need to log out and back in.
answered Jul 12 '15 at 20:48
Gilles
519k12410351565
519k12410351565
add a comment |
add a comment |
up vote
1
down vote
Log into root with the su command.
check your users groups with the command "groups ravenous" (note groups)
edit /etc/sudoers with, for example nano or vi "vi /etc/sudoers" scroll down to the part where you see groups that are uncommented (no # in front) and see if you are in that group (which your obviously are not)
if any group is allowed you need to add your user to the group. if you cant see any uncommented groups, you need to uncomment a group.
Uncomment:
if using vi, press i for insert, move with keypads to the # in front of the group you need to uncomment, remove the hashtag.
press esc and type :wq! to write and quit.
Now, you add your user to the group:
usermod -a -G wheel ravenous (add ravenous to group wheel)
Log out as root, log out as ravenous, log back in. Or reboot if u'd like that.
9
Don't edit/etc/sudoers
directly! Run the commandvisudo
.
– Gilles
Jul 12 '15 at 13:14
Indeed, better to use visudo.
– Philip Wiberg
Jul 13 '15 at 13:28
add a comment |
up vote
1
down vote
Log into root with the su command.
check your users groups with the command "groups ravenous" (note groups)
edit /etc/sudoers with, for example nano or vi "vi /etc/sudoers" scroll down to the part where you see groups that are uncommented (no # in front) and see if you are in that group (which your obviously are not)
if any group is allowed you need to add your user to the group. if you cant see any uncommented groups, you need to uncomment a group.
Uncomment:
if using vi, press i for insert, move with keypads to the # in front of the group you need to uncomment, remove the hashtag.
press esc and type :wq! to write and quit.
Now, you add your user to the group:
usermod -a -G wheel ravenous (add ravenous to group wheel)
Log out as root, log out as ravenous, log back in. Or reboot if u'd like that.
9
Don't edit/etc/sudoers
directly! Run the commandvisudo
.
– Gilles
Jul 12 '15 at 13:14
Indeed, better to use visudo.
– Philip Wiberg
Jul 13 '15 at 13:28
add a comment |
up vote
1
down vote
up vote
1
down vote
Log into root with the su command.
check your users groups with the command "groups ravenous" (note groups)
edit /etc/sudoers with, for example nano or vi "vi /etc/sudoers" scroll down to the part where you see groups that are uncommented (no # in front) and see if you are in that group (which your obviously are not)
if any group is allowed you need to add your user to the group. if you cant see any uncommented groups, you need to uncomment a group.
Uncomment:
if using vi, press i for insert, move with keypads to the # in front of the group you need to uncomment, remove the hashtag.
press esc and type :wq! to write and quit.
Now, you add your user to the group:
usermod -a -G wheel ravenous (add ravenous to group wheel)
Log out as root, log out as ravenous, log back in. Or reboot if u'd like that.
Log into root with the su command.
check your users groups with the command "groups ravenous" (note groups)
edit /etc/sudoers with, for example nano or vi "vi /etc/sudoers" scroll down to the part where you see groups that are uncommented (no # in front) and see if you are in that group (which your obviously are not)
if any group is allowed you need to add your user to the group. if you cant see any uncommented groups, you need to uncomment a group.
Uncomment:
if using vi, press i for insert, move with keypads to the # in front of the group you need to uncomment, remove the hashtag.
press esc and type :wq! to write and quit.
Now, you add your user to the group:
usermod -a -G wheel ravenous (add ravenous to group wheel)
Log out as root, log out as ravenous, log back in. Or reboot if u'd like that.
answered Jul 12 '15 at 11:19
Philip Wiberg
8115
8115
9
Don't edit/etc/sudoers
directly! Run the commandvisudo
.
– Gilles
Jul 12 '15 at 13:14
Indeed, better to use visudo.
– Philip Wiberg
Jul 13 '15 at 13:28
add a comment |
9
Don't edit/etc/sudoers
directly! Run the commandvisudo
.
– Gilles
Jul 12 '15 at 13:14
Indeed, better to use visudo.
– Philip Wiberg
Jul 13 '15 at 13:28
9
9
Don't edit
/etc/sudoers
directly! Run the command visudo
.– Gilles
Jul 12 '15 at 13:14
Don't edit
/etc/sudoers
directly! Run the command visudo
.– Gilles
Jul 12 '15 at 13:14
Indeed, better to use visudo.
– Philip Wiberg
Jul 13 '15 at 13:28
Indeed, better to use visudo.
– Philip Wiberg
Jul 13 '15 at 13:28
add a comment |
up vote
0
down vote
Or simply add ravenous to the sudo group. Login as root or use su. Then to add the user to the sudo group use this:
usermod -aG sudo ravenous
A default install of the sudo package on most Linux systems already have the group sudo setup for access (I know debian does as thats what I use myself), so simply adding any username to that group will grant access to use sudo. Also you will need to relogin for the change to take affect.
It wouldn't work if the logged-in user just typednewgrp sudo
?
– Jeff Schaller
Jul 12 '15 at 15:36
hmm, good question, I am unsure whether that will make the new sudo group your default, or just add it as another group your belong to. Reading the man for this seems to indicate that would work though.
– dakka
Jul 13 '15 at 0:09
add a comment |
up vote
0
down vote
Or simply add ravenous to the sudo group. Login as root or use su. Then to add the user to the sudo group use this:
usermod -aG sudo ravenous
A default install of the sudo package on most Linux systems already have the group sudo setup for access (I know debian does as thats what I use myself), so simply adding any username to that group will grant access to use sudo. Also you will need to relogin for the change to take affect.
It wouldn't work if the logged-in user just typednewgrp sudo
?
– Jeff Schaller
Jul 12 '15 at 15:36
hmm, good question, I am unsure whether that will make the new sudo group your default, or just add it as another group your belong to. Reading the man for this seems to indicate that would work though.
– dakka
Jul 13 '15 at 0:09
add a comment |
up vote
0
down vote
up vote
0
down vote
Or simply add ravenous to the sudo group. Login as root or use su. Then to add the user to the sudo group use this:
usermod -aG sudo ravenous
A default install of the sudo package on most Linux systems already have the group sudo setup for access (I know debian does as thats what I use myself), so simply adding any username to that group will grant access to use sudo. Also you will need to relogin for the change to take affect.
Or simply add ravenous to the sudo group. Login as root or use su. Then to add the user to the sudo group use this:
usermod -aG sudo ravenous
A default install of the sudo package on most Linux systems already have the group sudo setup for access (I know debian does as thats what I use myself), so simply adding any username to that group will grant access to use sudo. Also you will need to relogin for the change to take affect.
answered Jul 12 '15 at 12:09
dakka
616411
616411
It wouldn't work if the logged-in user just typednewgrp sudo
?
– Jeff Schaller
Jul 12 '15 at 15:36
hmm, good question, I am unsure whether that will make the new sudo group your default, or just add it as another group your belong to. Reading the man for this seems to indicate that would work though.
– dakka
Jul 13 '15 at 0:09
add a comment |
It wouldn't work if the logged-in user just typednewgrp sudo
?
– Jeff Schaller
Jul 12 '15 at 15:36
hmm, good question, I am unsure whether that will make the new sudo group your default, or just add it as another group your belong to. Reading the man for this seems to indicate that would work though.
– dakka
Jul 13 '15 at 0:09
It wouldn't work if the logged-in user just typed
newgrp sudo
?– Jeff Schaller
Jul 12 '15 at 15:36
It wouldn't work if the logged-in user just typed
newgrp sudo
?– Jeff Schaller
Jul 12 '15 at 15:36
hmm, good question, I am unsure whether that will make the new sudo group your default, or just add it as another group your belong to. Reading the man for this seems to indicate that would work though.
– dakka
Jul 13 '15 at 0:09
hmm, good question, I am unsure whether that will make the new sudo group your default, or just add it as another group your belong to. Reading the man for this seems to indicate that would work though.
– dakka
Jul 13 '15 at 0:09
add a comment |
up vote
0
down vote
How to add user to the list of sudo users.
(Debian 9 Stretch)
First. From terminal, type: visudo
Find:
# User privilege specification
root ALL=(ALL:ALL) ALL
Directly underneath these lines, add your user name:
# User privilege specification
root ALL=(ALL:ALL) ALL
newName ALL=(ALL:ALL) ALL
Exit visudo:
ctrl
+ x
Save changes to file:
Y
Enter.
Reboot.
New terminal:
$ sudo apt-get update
At prompt, type password
Finished. You should now be using a 'regular' account user with sudo privileges.
add a comment |
up vote
0
down vote
How to add user to the list of sudo users.
(Debian 9 Stretch)
First. From terminal, type: visudo
Find:
# User privilege specification
root ALL=(ALL:ALL) ALL
Directly underneath these lines, add your user name:
# User privilege specification
root ALL=(ALL:ALL) ALL
newName ALL=(ALL:ALL) ALL
Exit visudo:
ctrl
+ x
Save changes to file:
Y
Enter.
Reboot.
New terminal:
$ sudo apt-get update
At prompt, type password
Finished. You should now be using a 'regular' account user with sudo privileges.
add a comment |
up vote
0
down vote
up vote
0
down vote
How to add user to the list of sudo users.
(Debian 9 Stretch)
First. From terminal, type: visudo
Find:
# User privilege specification
root ALL=(ALL:ALL) ALL
Directly underneath these lines, add your user name:
# User privilege specification
root ALL=(ALL:ALL) ALL
newName ALL=(ALL:ALL) ALL
Exit visudo:
ctrl
+ x
Save changes to file:
Y
Enter.
Reboot.
New terminal:
$ sudo apt-get update
At prompt, type password
Finished. You should now be using a 'regular' account user with sudo privileges.
How to add user to the list of sudo users.
(Debian 9 Stretch)
First. From terminal, type: visudo
Find:
# User privilege specification
root ALL=(ALL:ALL) ALL
Directly underneath these lines, add your user name:
# User privilege specification
root ALL=(ALL:ALL) ALL
newName ALL=(ALL:ALL) ALL
Exit visudo:
ctrl
+ x
Save changes to file:
Y
Enter.
Reboot.
New terminal:
$ sudo apt-get update
At prompt, type password
Finished. You should now be using a 'regular' account user with sudo privileges.
edited 5 hours ago
answered Aug 1 at 0:02
Kelly
114
114
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f215391%2fsudo-complains-is-not-in-the-sudoers-file%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5
Please do not post screenshots of text. Copy-paste the text. Screenshots are hard to read and cannot be searched.
– Gilles
Jul 12 '15 at 13:15