Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sudo pacman -Syy
[sudo] password for usr:
Sorry, try again.
[sudo] password for usr:
Code:
su
<root_passwd>
passwd usr
<password> ##same as old
exit
usr@linux: sudo su
[sudo] password for usr:
<password>
Sorry, try again.
I tried changing the password as root, seems like that wasn't the issue. The only thing that comes to mind at this point is a broken sudo.
UPDATE: Everything went back to normal after logging out and back in again but i'm still curious what could be causing issues like this and how can this be prevented for the future.
Sudo uses the password of the current user account (in your example, "usr"), not the root user's password.
Of course.
What i'm saying here is i tried to do a pacman update and it telling me i got the wrong password. Then i logged in as root and changed the password for "usr" just to make sure and i still get the same issue. That's why i brought up broken sudo because that's the first obvious thing that comes to mind.
UPDATE: Everything went back to normal after logging out and back in again but i'm still curious what could be causing issues like this and how can this be prevented for the future.
Perhaps sudo was not configured for usr. One possible scenario: sudo might be configured for a certain group only. You add usr to that group, but to make the new group effective, usr has to log in again. I am sure there are other possible scenarios.
You shouldn't be using -Syy. Use -Syu. There's a good reason for this, it is documented somewhere on Arch wiki.
Or maybe Manjaro is different in that respect, who knows.
You shouldn't be using -Syy. Use -Syu. There's a good reason for this, it is documented somewhere on Arch wiki.
Or maybe Manjaro is different in that respect, who knows.
Yes, i know. That was a just a random command to prove the point.
Of course.
What i'm saying here is i tried to do a pacman update and it telling me i got the wrong password. Then i logged in as root and changed the password for "usr" just to make sure and i still get the same issue. That's why i brought up broken sudo because that's the first obvious thing that comes to mind.
This description and the level of detail you've now added to the first post should have been what you posted to start with (along with whether sudo/pacman have worked before or if this is the first time on that system) - then you avoid time being wasted with obvious answers.
This description and the level of detail you've now added to the first post should have been what you posted to start with (along with whether sudo/pacman have worked before or if this is the first time on that system) - then you avoid time being wasted with obvious answers.
Agreed. But also excuse me for being very new to LQ in general and i would appreciate you sharing some useful docs or site resources to help me.
Agreed. But also excuse me for being very new to LQ in general and i would appreciate you sharing some useful docs or site resources to help me.
See the links berndbausch provided.
Also, a useful technique is to write your question, then read it as if someone else is asking you that question - how would you respond, what questions would you ask, etc?
Go back and update/re-write the question to take those things into account, and repeat the process a couple of times.
Often this can be enough to solve issues in itself (and generally helps train your analytical skills), but even when that doesn't happen, it should still tend towards a question that is more likely to receive helpful replies sooner.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.