> -----Original Message-----
> From: Ken Jones [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 05, 2000 9:06 AM
> To: Matt Simerson
> Cc: 'Brumm Dominik'; '[EMAIL PROTECTED]'
> Subject: Re: Bug in qmailadmin 0.39
> 
> 
> Matt Simerson wrote:
> > 
> > Well, it's remotely possible that the problem is in the HTML but I have
to
> > believe it's not. I have many browers I test with (IE 5.5 on WinNT,
Netscape
> > 4.7 on WinNT, and Netscape 4.7 on FreeBSD, Netscape 4.7 on MacOS, IE 4.5
on
> > MacOS) and I know it's not a browser specific problem. The HTML form
works
> > just fine for the domains that were added to the system very early on
and
> > doesn't work for any of the 500+ domains I've added since (as far as I
can
> > tell).
> > 
> > So, I did some more testing and it appears the problems is with ALL
domains
> > that are created under a system username other than vpopmail. The reason
I
> > thought it was related the the inclusion in rcpthosts vs morercphosts
was
> > that early domains were in that file. The other common factor was that
the
> > early ones live in ~vpopmail/domains instead of
~username/domains/domain.com.
> 
> Ahh.. If you are running a domain under a non vpopmail user name, 
> make sure you change the permissions on qmailadmin to be root.root
> and setuid/setgid root. The standard distribution sets it to
> be setuid/gid vpopmail.vchkpw. 

Already done, that was one of the first things I checked.
 
> It needs the root setuid/gid to change ownership to the user
> who owns the domain. It gets the domain uid/gid information
> from the line in /var/qmail/users/cdb (assign) file.

The actual solution came from another fellow on the list here who had
already patched his vpopmail to work. 

The relavent lines were in the int vauth_vpasswd subroutine and required
adding a couple declarations:

   int uid;
   int gid;

and a few code tweaks. Check the list archives in this thread.

Once I made the code changes, I recompiled vpopmail, reinstalled it, then
recompiled and reinstalled sqwebmail and it's change password feature began
working (I compile sqwebmail with --enable-webpass=vpopmail). Once I
recompiled qmailadmin, it began working.

Matt

Reply via email to