Re: SV: After upgrading to RH8 neomail wont work!
Andy Herrero <[email protected]>
| Newsgroups | gmane.mail.neomail.general |
|---|---|
| Message-ID | <[email protected]> |
OK, so we know that works as root. 1) What user/group does your apache run as? (I'm guessing apache/apache unless you've changed it). 2) You said that you'd fixed the permission-problem. It sounds to me like maybe it's not completely fixed. Show the dir-listings again! If neomail.pl runs (which it does), it tries to spawn the checklogin.pl script which should return 0 and allow access to the user in question. What's troublesome in situations like these is that you must replicate the exact environment in which apache/perl works in order to find the problem. -- Andy --On den 8 oktober 2002 11:12 +0200 Mikael Karmalm <[email protected]> wrote: > Hi! > > That seams to work, but still it does not work from a browser! > > > [root@spectre neomail]# ./checklogin.pl > /etc/shadow > mikaelk > xxxxxxx > [root@spectre neomail]# echo $? > 0 > > [root@spectre neomail]# cat /var/neomail/neomail.conf | grep > '$passwdfile' > $passwdfile = '/etc/shadow'; > > -----Ursprungligt meddelande----- > Fran: [email protected] > [mailto:[email protected]] For Andy Herrero > Skickat: den 8 oktober 2002 10:33 > Till: [email protected] > Amne: Re: [Neomail-users] After upgrading to RH8 neomail wont work! > > > Do the following: > ># cd /var/neomail ># ./checklogin.pl > /etc/shadow > username > password ># echo $? > > The echo command should return either 0 (authentication succeeded) or > 1 (authentication failed). Use an active account and the checklogin > script should return 0. Oh.. note that checklogin.pl waits for input > from > stdin, and you must supply the three lines after which the script will > return. > > Explanation: checklogin.pl expects three arguments. > 1) The file which contains the user database including the hashed > passwords. > 2) The username > 3) The password > > Also, check the result from the following command: > ># cat /var/neomail/neomail.conf | grep '$passwdfile' > > This is what neomail.pl supplies to checklogin.pl as the first argument > (the > user database). > > -- Andy > > --On den 8 oktober 2002 10:08 +0200 Mikael Karmalm <[email protected]> > wrote: > >> Hi again! >> >> It was a permission problem it's now solved. >> But I can't log in whit any of my users, or even if I create a new >> user... >> Please help. >> >> Output of neomail.log >> >> Tue Oct 8 09:55:41 2002 - [6868] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=buddha >> Tue Oct 8 09:55:50 2002 - [6872] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=mikaelk >> Tue Oct 8 09:55:59 2002 - [6875] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=mikaelk >> Tue Oct 8 09:56:34 2002 - [6882] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=mikaelk >> Tue Oct 8 10:01:11 2002 - [6977] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=mikaelk >> Tue Oct 8 10:01:54 2002 - [6982] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=miketest >> Tue Oct 8 10:02:43 2002 - [6990] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=mikaelk >> Tue Oct 8 10:03:14 2002 - [6998] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=mikaelk >> Tue Oct 8 10:04:06 2002 - [7006] (212.73.0.237) UNKNOWNUSER - invalid >> login attempt for username=mikaelk > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf