You are not logged in.

#1 2012-11-08 15:12:19

del---
Member
Registered: 2010-11-04
Posts: 31

[Solved] Password authentication for applications broken

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

#2 2012-11-09 22:32:05

gsgleason
Member
Registered: 2012-10-08
Posts: 72

Re: [Solved] Password authentication for applications broken

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

#3 2012-11-09 23:46:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Password authentication for applications broken

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

#4 2012-11-12 09:01:12

del---
Member
Registered: 2010-11-04
Posts: 31

Re: [Solved] Password authentication for applications broken

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

#5 2012-11-12 17:49:46

hiess
Member
Registered: 2012-11-06
Posts: 4

Re: [Solved] Password authentication for applications broken

Try:

Reinstalling two packages.

pacman -S pam
pacman -S pambase

mfg

Offline

#6 2012-11-13 11:59:23

del---
Member
Registered: 2010-11-04
Posts: 31

Re: [Solved] Password authentication for applications broken

hiess wrote:

Try:

Reinstalling two packages.

pacman -S pam
pacman -S pambase

mfg

You did it! I should have thought of that myself... Anyhow! It works! Thank you!

Offline

Board footer

Powered by FluxBB