Cannot sudo with Debian 10How to add a user to sudoers file?using sudo on GUI applicationsHow to add a user...
Something in the TV
Can my boyfriend, who lives in the UK and has a Polish passport, visit me in the USA?
Why were movies shot on film shot at 24 frames per second?
Are thrust levers synchronized by default when pushed/pulled?
Potential new partner angry about first collaboration - how to answer email to close up this encounter in a graceful manner
How can I run SQL Server Vulnerability Assessment from a SQL Job?
Can you feel passing through the sound barrier in an F-16?
Are required indicators necessary for radio buttons?
Can you grapple/shove with the Hunter Ranger's Whirlwind Attack?
Was 'help' pronounced starting with a vowel sound?
Why don't politicians push for fossil fuel reduction by pointing out their scarcity?
How to dismiss intrusive questions from a colleague with whom I don't work?
What professions would a medieval village with a population of 100 need?
How do you call it when two celestial bodies come as close to each other as they will in their current orbits?
Why we don't have vaccination against all diseases which are caused by microbes?
How to persuade recruiters to send me the Job Description?
How much code would a codegolf golf if a codegolf could golf code?
Should my "average" PC be able to discern the potential of encountering a gelatinous cube from subtle clues?
Taking out number of subarrays from an array which contains all the distinct elements of that array
Why doesn't the Falcon-9 first stage use three legs to land?
Is "stainless" a bulk or a surface property of stainless steel?
How can I support the recycling, but not the new production of aluminum?
In an emergency, how do I find and share my position?
Vacuum collapse -- why do strong metals implode but glass doesn't?
Cannot sudo with Debian 10
How to add a user to sudoers file?using sudo on GUI applicationsHow to add a user to sudoers file?Secure way to allow any user to run programs in specific network namespaceParallels on Mac - can no longer sudo within UbuntuHow to prevent the caller's shell from being used in sudoadding a sudoer in debianCan not limit commands user can run as root in devtoolset-3 enabled shellsudo is not working on my Centos 7.3Obtain sudo priviledge without sudo password
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have installed Debian 10 on Dell Inspiron with an AMD processor. I am using the KDE Plasma desktop. When I try
sudo dpkg -i ./palemoon_28.6.1+repack-2_amd64.deb
I get
[sudo] password for peter:
peter is not in the sudoers file. This incident will be reported.
I logged in as root and entered
/usr/sbin/adduser peter
This returned
adduser: The user `peter' already exists.
I then tried the following as root
chmod 0440 /etc/sudoers
When I try to sudo, in the peter account, I still get
peter is not in the sudoers file. This incident will be reported.
I then try the following as root
sudo usermod -aG sudo,adm peter
Still get the same reslt when I try to sudo from the peter account.
Opening a new terminal, for the peter account, does not change anything.
Edit
cat /etc/sudoers
root@debian:/home/peter/Downloads# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
root@debian:/home/peter/Downloads# id peter
uid=1000(peter) gid=1000(peter) groups=1000(peter),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),112(bluetooth),116(lpadmin),117(scanner)
debian sudo
|
show 2 more comments
I have installed Debian 10 on Dell Inspiron with an AMD processor. I am using the KDE Plasma desktop. When I try
sudo dpkg -i ./palemoon_28.6.1+repack-2_amd64.deb
I get
[sudo] password for peter:
peter is not in the sudoers file. This incident will be reported.
I logged in as root and entered
/usr/sbin/adduser peter
This returned
adduser: The user `peter' already exists.
I then tried the following as root
chmod 0440 /etc/sudoers
When I try to sudo, in the peter account, I still get
peter is not in the sudoers file. This incident will be reported.
I then try the following as root
sudo usermod -aG sudo,adm peter
Still get the same reslt when I try to sudo from the peter account.
Opening a new terminal, for the peter account, does not change anything.
Edit
cat /etc/sudoers
root@debian:/home/peter/Downloads# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
root@debian:/home/peter/Downloads# id peter
uid=1000(peter) gid=1000(peter) groups=1000(peter),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),112(bluetooth),116(lpadmin),117(scanner)
debian sudo
What's in /etc/sudoers? What groups is your user in?
– Joseph Sible
2 days ago
The problem is sudo use its own settings to decide whether a user can run a command.
– 炸鱼薯条德里克
2 days ago
Add the output ofcat /etc/sudoers
andid peter
to your question. Also,/etc/sudoers
already has 440 permissions so there's no need to runchmod
on it.
– Nasir Riley
2 days ago
Thank you for your replies. I have edited my question to include the output of "cat /etc/sudoers" and "id peter"
– OtagoHarbour
2 days ago
1
Possible duplicate of How to add a user to sudoers file?
– GAD3R
yesterday
|
show 2 more comments
I have installed Debian 10 on Dell Inspiron with an AMD processor. I am using the KDE Plasma desktop. When I try
sudo dpkg -i ./palemoon_28.6.1+repack-2_amd64.deb
I get
[sudo] password for peter:
peter is not in the sudoers file. This incident will be reported.
I logged in as root and entered
/usr/sbin/adduser peter
This returned
adduser: The user `peter' already exists.
I then tried the following as root
chmod 0440 /etc/sudoers
When I try to sudo, in the peter account, I still get
peter is not in the sudoers file. This incident will be reported.
I then try the following as root
sudo usermod -aG sudo,adm peter
Still get the same reslt when I try to sudo from the peter account.
Opening a new terminal, for the peter account, does not change anything.
Edit
cat /etc/sudoers
root@debian:/home/peter/Downloads# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
root@debian:/home/peter/Downloads# id peter
uid=1000(peter) gid=1000(peter) groups=1000(peter),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),112(bluetooth),116(lpadmin),117(scanner)
debian sudo
I have installed Debian 10 on Dell Inspiron with an AMD processor. I am using the KDE Plasma desktop. When I try
sudo dpkg -i ./palemoon_28.6.1+repack-2_amd64.deb
I get
[sudo] password for peter:
peter is not in the sudoers file. This incident will be reported.
I logged in as root and entered
/usr/sbin/adduser peter
This returned
adduser: The user `peter' already exists.
I then tried the following as root
chmod 0440 /etc/sudoers
When I try to sudo, in the peter account, I still get
peter is not in the sudoers file. This incident will be reported.
I then try the following as root
sudo usermod -aG sudo,adm peter
Still get the same reslt when I try to sudo from the peter account.
Opening a new terminal, for the peter account, does not change anything.
Edit
cat /etc/sudoers
root@debian:/home/peter/Downloads# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
root@debian:/home/peter/Downloads# id peter
uid=1000(peter) gid=1000(peter) groups=1000(peter),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),112(bluetooth),116(lpadmin),117(scanner)
debian sudo
debian sudo
edited 2 days ago
OtagoHarbour
asked 2 days ago
OtagoHarbourOtagoHarbour
3994 gold badges9 silver badges23 bronze badges
3994 gold badges9 silver badges23 bronze badges
What's in /etc/sudoers? What groups is your user in?
– Joseph Sible
2 days ago
The problem is sudo use its own settings to decide whether a user can run a command.
– 炸鱼薯条德里克
2 days ago
Add the output ofcat /etc/sudoers
andid peter
to your question. Also,/etc/sudoers
already has 440 permissions so there's no need to runchmod
on it.
– Nasir Riley
2 days ago
Thank you for your replies. I have edited my question to include the output of "cat /etc/sudoers" and "id peter"
– OtagoHarbour
2 days ago
1
Possible duplicate of How to add a user to sudoers file?
– GAD3R
yesterday
|
show 2 more comments
What's in /etc/sudoers? What groups is your user in?
– Joseph Sible
2 days ago
The problem is sudo use its own settings to decide whether a user can run a command.
– 炸鱼薯条德里克
2 days ago
Add the output ofcat /etc/sudoers
andid peter
to your question. Also,/etc/sudoers
already has 440 permissions so there's no need to runchmod
on it.
– Nasir Riley
2 days ago
Thank you for your replies. I have edited my question to include the output of "cat /etc/sudoers" and "id peter"
– OtagoHarbour
2 days ago
1
Possible duplicate of How to add a user to sudoers file?
– GAD3R
yesterday
What's in /etc/sudoers? What groups is your user in?
– Joseph Sible
2 days ago
What's in /etc/sudoers? What groups is your user in?
– Joseph Sible
2 days ago
The problem is sudo use its own settings to decide whether a user can run a command.
– 炸鱼薯条德里克
2 days ago
The problem is sudo use its own settings to decide whether a user can run a command.
– 炸鱼薯条德里克
2 days ago
Add the output of
cat /etc/sudoers
and id peter
to your question. Also, /etc/sudoers
already has 440 permissions so there's no need to run chmod
on it.– Nasir Riley
2 days ago
Add the output of
cat /etc/sudoers
and id peter
to your question. Also, /etc/sudoers
already has 440 permissions so there's no need to run chmod
on it.– Nasir Riley
2 days ago
Thank you for your replies. I have edited my question to include the output of "cat /etc/sudoers" and "id peter"
– OtagoHarbour
2 days ago
Thank you for your replies. I have edited my question to include the output of "cat /etc/sudoers" and "id peter"
– OtagoHarbour
2 days ago
1
1
Possible duplicate of How to add a user to sudoers file?
– GAD3R
yesterday
Possible duplicate of How to add a user to sudoers file?
– GAD3R
yesterday
|
show 2 more comments
1 Answer
1
active
oldest
votes
As root, I created a file
vi /etc/sudoers.d/peter
and added
peter ALL=(ALL:ALL) ALL
I can now sudo from the peter account.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f536178%2fcannot-sudo-with-debian-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As root, I created a file
vi /etc/sudoers.d/peter
and added
peter ALL=(ALL:ALL) ALL
I can now sudo from the peter account.
add a comment |
As root, I created a file
vi /etc/sudoers.d/peter
and added
peter ALL=(ALL:ALL) ALL
I can now sudo from the peter account.
add a comment |
As root, I created a file
vi /etc/sudoers.d/peter
and added
peter ALL=(ALL:ALL) ALL
I can now sudo from the peter account.
As root, I created a file
vi /etc/sudoers.d/peter
and added
peter ALL=(ALL:ALL) ALL
I can now sudo from the peter account.
answered 2 days ago
OtagoHarbourOtagoHarbour
3994 gold badges9 silver badges23 bronze badges
3994 gold badges9 silver badges23 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f536178%2fcannot-sudo-with-debian-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What's in /etc/sudoers? What groups is your user in?
– Joseph Sible
2 days ago
The problem is sudo use its own settings to decide whether a user can run a command.
– 炸鱼薯条德里克
2 days ago
Add the output of
cat /etc/sudoers
andid peter
to your question. Also,/etc/sudoers
already has 440 permissions so there's no need to runchmod
on it.– Nasir Riley
2 days ago
Thank you for your replies. I have edited my question to include the output of "cat /etc/sudoers" and "id peter"
– OtagoHarbour
2 days ago
1
Possible duplicate of How to add a user to sudoers file?
– GAD3R
yesterday