Sam Varshavchik wrote:
>
> On Fri, 8 Sep 2000, Daniel Augusto Fernandes wrote:
> > What to do when my 'authlib/authtest' work all right but my sqwebmail
> > doesn't authenticate. It shows the "Invalid user id & password" message.
> > And there is no syslog/error_log message.
> >
> > How can I debug this?
>
> There can only be two explanations:
>
Hello, Thanks for your help,
> * sqwebmail is not installed setuid root
>
Here are my sqwebmail:
-rwsr-xr-x 1 root root 228348 Sep 8 17:22
/usr/local/etc/httpd/cgi-bin/sqwebmail
-rwsr-xr-x 1 root root 212348 Sep 8 17:22
/usr/local/etc/httpd/cgi-bin/sqwebmail2
The first one is an authvchkpw and is working on the same system! The
second one is my authmysql which is not working.
> * $HOME/Maildir does not have the correct ownership or permissions
In this case I have the authtest working very well. Does authtest check
Maildir and uid differently? Cause authtest actually setuid/gid and
chdir to the $home/Maildir. Does it not?
> ./authtest [EMAIL PROTECTED] #####
> Authenticated: module authmysql
> Home directory: /home/vpopmail/domains/epostal.com.br/G/daftm
> UID/GID: 3367/503
> AUTHADDR=daftm
> AUTHFULLNAME=Daniel Augusto Fernandes
> strace ./authtest [EMAIL PROTECTED] ###### | & grep set
> setgid(503) = 0
> setgroups(1, [503]) = 0
> setuid(3367) = 0
> strace ./authtest [EMAIL PROTECTED] ###### | & grep chdi
> chdir("/home/vpopmail/domains/epostal.com.br/G/daftm") = 0
--------------------------------------------------------------------
Daniel Augusto Fernandes (DAF tm) [EMAIL PROTECTED]
GCSNet http://www.gcsnet.com.br/
--------------------------------------------------------------------
Se voc� n�o encontra
o sentido das coisas
� porque este n�o
se encontra, se cria.
Antoine Saint-Exup�ry