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.
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
Re: sudo password is wrong
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.
- sunrat
- Administrator
- Posts: 6541
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 119 times
- Been thanked: 498 times
Re: sudo password is wrong
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/
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!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: sudo password is wrong
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
Code: Select all
su -
deadbang
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: sudo password is wrong
To add to sudo (as root)
(Replace <username> with the actual username)
Now reboot the system.
Its just enough to logout / login and not necessary to reboot the system
Code: Select all
apt-get install sudo
usermod -a -G sudo <username>
Now reboot the system.
Its just enough to logout / login and not necessary to reboot the system
Re: sudo password is wrong
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
This video might help you
https://youtube.com/watch?v=Dk1RSryy5Ls