Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

sudo password is wrong

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
nikodavid
Posts: 3
Joined: 2022-06-14 22:09

sudo password is wrong

#1 Post by nikodavid »

Every time I enter the sudo password in the terminal, it tells me that it is wrong.

The password is actually correct because i've already used it to open the graphical package manager and everything works fine, but the problem is in the terminal.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: sudo password is wrong

#2 Post by Bulkley »

Just to be clear, sudo uses your user password while su - uses your root password. Is that what you are doing?

nikodavid
Posts: 3
Joined: 2022-06-14 22:09

Re: sudo password is wrong

#3 Post by nikodavid »

Bulkley wrote: 2022-06-14 23:01 Just to be clear, sudo uses your user password while su - uses your root password. Is that what you are doing?
So I am confusing terms. Even so, when I put the username password in the terminal, it reports '{my_username} is not in the sudoers file. This incident will be reported.' Why this error and how to fix it? The 'why' is important to me because I'm new to Linux.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: sudo password is wrong

#4 Post by sunrat »

Add your user to sudo then. There's a Debian wiki page that explains that. Would have been easy to find with a quick web search.
https://wiki.debian.org/sudo/
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
Diesel330
Posts: 127
Joined: 2021-11-08 19:57
Location: Eastern Europe
Has thanked: 29 times
Been thanked: 16 times

Re: sudo password is wrong

#5 Post by Diesel330 »

try

Code: Select all

sudo su
that works for me

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: sudo password is wrong

#6 Post by Head_on_a_Stick »

Diesel330 wrote: 2022-06-17 09:16

Code: Select all

sudo su
that works for me
That won't work for the OP until they add their user to the sudo group. And even then it won't work because PATH won't be set correctly.

Use

Code: Select all

sudo -i
Or

Code: Select all

su -
deadbang

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: sudo password is wrong

#7 Post by arochester »

To add to sudo (as root)

Code: Select all

apt-get install sudo
usermod -a -G sudo <username>
(Replace <username> with the actual username)
Now reboot the system.
Its just enough to logout / login and not necessary to reboot the system

jazzeroo
Posts: 12
Joined: 2022-05-23 19:06

Re: sudo password is wrong

#8 Post by jazzeroo »

I have asked for help a lot here lately so maybe I can help some a bit in return.
This video might help you

https://youtube.com/watch?v=Dk1RSryy5Ls

Post Reply