Hi there. I have this new issue where when I try to update via this: sudo pacman -Syyu
I get this error: sudo: 1 incorrect password attempt
However when I try this su command, I get the access.
I don’t understand why this is happening. I haven’t changed my password. Anybody please help!
You have to check the files under /etc/pam.d/ and merge any files whose names end in .pacnew into the original files.
Also, please note that there is a distinct difference between su and sudo. They work differently, and in the default configuration, sudo asks for the user’s own password, not the root password, while su ─ which stands for “substitute user” ─ defaults to the root account if no other parameters are given, and thus requires the root password to be entered.
Also note that it’s better to use…
su -
… with a dash, because if you don’t, then you stand a chance of changing the ownership of certain files in your home directory to the root user, and that could lead to all kinds of mayhem.
When using suwithout the dash, you are becoming the root user operating within the same environment as your normal user. You’ll even stay within the same working directory.
With the dash, su calls in a new login session and you inherit the target user’s environment ─ in this case, the root user’s environment.
Well the issue got resolved for now! I simply rebooted. But I can confirm this issue recurrs… I have had this from this afternoon… and it simply didn’t let me check for updates!!
Will update here if I get the error again! For now its good and fine! May something could be messed up in /etc/sudoers.d/ but strangely I couldn’t access the directory!
I got this cd not found ! lol!
[dstyle@dsys ~]$ sudo cd /etc/sudoers.d/
[sudo] password for dstyle:
sudo: cd: command not found
Dolphin couldn’t see it either!
Ps: A feedback, the forum’s format code ain’t working on chrome!
That error doesn’t have anything to do with the directory not being there ─ it should be there because it’s created by the package, but it may be empty ─ but rather, it is an error that it cannot find the command cd, which is a shell builtin.
It should normally work, unless you’ve got some plugins that block Javascript. In my Chromium here, it works perfectly.
Sudo would not accept my password, even weirder when I logged my user out, lightDM said “8 minutes left to log in” below the password field and wouldn’t accept my password until I did a full reboot.
It is very strange that I have found like 7 posts about this password stops woriking X minutes after boot and noone seems to know how to fix it. I am living with this issue since August and now I ran out of ideas and paitence. I did a reinstall but preseverd my home folder and the issue didn’t go away.
Is Manjaro totally broken now? Should we who have the problem just use some other distro?
I’ve thankfully not encountered this problem now since the initial event. I’m none the wiser as to what the culprit is. If you’ve re-installed your base system perhaps it’s a user issue - you could try removing the dotfiles from your home directory after backing up.
I’m afraid I don’t have anything meaningful to add.
I know this is not what this thread is about, but I nonetheless want to thank you for this explanation. I am glad I found this. Albeit only eventually.
Finding this strange but I am also facing the same exact problem. As @AdamSzabo already tried reinstalling the OS, even if this is not helping, I am seeing a serious trouble here. We certainly need help in this thread.