Re: authentication failures for non-root user

"David Phillips" <[email protected]> Wed, 27 Sep 2006 16:16:24 -0500
Newsgroups gmane.comp.djb.checkpassword
Message-ID <[email protected]>
On 9/27/06, Neil Stickels <[email protected]> wrote:
> I installed checkpassword using the rpm for my distro, and it works fine for
> the root user.  I can run
> /var/qmail/bin/qmail-popup blah /bin/checkpassword pwd
> and if I put in a valid user and password, it will login fine.  However, if
> I try to run this as a non-root user, I always get "-ERR authorization
> failed".  Additionally, if I try to telnet to my server on port 110, even
> when I put in the correct credentials, I get the authorization failed
> message.  Because of this, I can't get my mail via pop.

checkpassword must be run as root.  You can either run qmail-popup as
root, or make checkpassword setuid root.