You are not logged in.
For some reason, when an application like sudo or passwd prompts for my password on my server, it always fails. Strangely though, I can log in with the same password using the main login prompt or su.
I've tried resetting my password using the root account but to avail. For some reason other user accounts seem to work fine.
For clarity, I can do the following (# = as root, $ = as me, % = other user):
$su
#passwd <my username>
(enter password, any password, twice. Is successful)
#exit
$passwd
(enter same password. Fails. I've made sure the password is correct. I changed it to 'a' to be sure once.)
$sudo echo 1
(Prompts for password and fails again.)
$su <my name>
(Prompts for password, works fine)
$su
#su <other user on server>
%passwd
(Works fine)
%sudo echo 1
(Works fine)If it helps, here's the line from my shadow file after changing my password to 'a':
<my name>:$6$uie8nS87$0YEPgEeYgsEi438oXmcSx1aUL81JTZrlvZfou04DH.3NEMeL6NJnx9wZzvsBaRWvA0UfV6eEJAZVfDAVrm0Mq1:15652:0:99999:7:::Last edited by del--- (2012-11-13 13:56:48)
Offline
That's really weird, man. I don't have an answer for you, but maybe running passwd (as you) with strace might shed some light on things.
Also, make sure passwd has the setuid bit set, and is owned by user root and group root, and that others can still read and execute.
Offline
Sounds like a sudo issue. Perhaps a problem in your sudoers file.
If you haven't made many changes to sudoers, you could uninstall sudo (making sure to remove sudoers) and reinstall sudo to get a clean slate.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Okay, here's my strace: https://gist.github.com/4058245
I have no idea what to do with that really...
I checked the passwd binary and its permissions were 4755.
Offline
Try:
Reinstalling two packages.
pacman -S pampacman -S pambasemfg
Offline
Try:
Reinstalling two packages.
pacman -S pampacman -S pambasemfg
You did it! I should have thought of that myself... Anyhow! It works! Thank you!
Offline