SV: SV: After upgrading to RH8 neomail wont work!

"Mikael Karmalm" <[email protected]>
Newsgroups gmane.mail.neomail.general
Message-ID <001e01c26ec5$778f7c20$920914ac@vengeance>
Here is the listning again!

/M

root@spectre neomail]# ls -la
total 1488
drwxrwx---    6 root     neomail      4096 Oct  8 10:56 .
drwxr-xr-x   29 root     root         4096 Oct  7 19:18 ..
-rwsr-xr-x    1 root     root          710 Oct  8 09:59 checklogin.pl
-rw-rw----    1 root     apache         13 Oct  5 15:00
isa-session-0.777091167009534
-rw-rw----    1 root     apache         13 Dec 13  2001
josefin-session-1.24874441453926e-06
drwxr-x---    2 root     neomail      4096 Jun 20  2001 lang
-rwxr-x---    1 root     neomail      7437 Oct  8 10:56 neomail.conf
-rwxr-x---    1 root     root         7432 Jun 20  2001 neomail.conf~
-rw-rw----    1 root     neomail   1465280 Oct  8 13:34 neomail.log
drwxr-x---    2 root     neomail      4096 Jun 20  2001 styles
drwxr-x---   23 root     neomail      4096 Jun 20  2001 templates
drwxrwx---   20 root     neomail      4096 Sep  3 10:48 users



[root@spectre var]# ls -la
total 128
drwxr-xr-x   29 root     root         4096 Oct  7 19:18 .
drwxr-xr-x   19 root     root         4096 Oct  7 19:09 ..
drwxr-xr-x    2 pcap     pcap         4096 Oct  5 18:11 arpwatch
drwxr-xr-x    7 root     root         4096 Oct  5 18:11 cache
drwxr-xr-x    2 root     root         4096 Aug  5  1998 db
drwxr-xr-x    3 root     root         4096 Oct  5 17:57 empty
drwxr-xr-x    6 root     root         4096 Jun 23 15:50 ftp
drwxr-x---    2 gdm      gdm          4096 Oct  7 19:10 gdm
drwxr-xr-x   17 root     root         4096 Oct  5 18:10 lib
drwxr-xr-x    2 root     root         4096 Feb  6  1996 local
drwxrwxr-x    3 root     lock         4096 Oct  7 19:10 lock
drwxr-xr-x    9 root     root         4096 Oct  7 19:09 log
drwxr-xr-x    2 root     root        16384 Jun 16  2001 lost+found
lrwxrwxrwx    1 root     root           10 Oct  5 17:54 mail ->
spool/mail
drwxr-xr-x    6 root     root         4096 Jan 18  2002 man
drwxr-xr-x    2 named    named        4096 Oct  7 09:52 named
drwxrwx---    6 root     mail         4096 Oct  7 19:18 neo
drwxrwx---    6 root     neomail      4096 Oct  8 10:56 neomail
drwxr-xr-x    2 root     root         4096 Feb  6  1996 nis
drwxr-xr-x    2 root     root         4096 Apr 13  2000 opt
drwxr-xr-x    2 root     root         4096 Feb  6  1996 preserve
drwxr-xr-x    8 root     root         4096 Oct  8 10:57 run
drwxr-xr-x  164 root     root         4096 Oct  7 19:05 share
drwxr-xr-x   14 root     root         4096 Oct  5 17:58 spool
drwxr-xr-x    3 root     root         4096 Jan 18  2002 state
drwxrwxrwt    2 root     root         4096 Oct  7 19:15 tmp
drwx------    2 root     root         4096 Jun 24 02:42 tux
drwx------    2 root     bin          4096 Sep 23 11:02 webmin
drwxr-xr-x    6 root     root         4096 Oct  7 19:15 www
drwxr-xr-x    3 root     root         4096 Oct  5 18:10 yp



root@spectre cgi-bin]# ls -la
total 360
drwxr-xr-x    2 root     root         4096 Oct  8 09:14 .
drwxr-xr-x    6 root     root         4096 Oct  7 19:15 ..
-rwsr-xr-x    1 root     neomail    120429 Oct  8 09:59 neomail.pl
-rwsr-xr-x    1 root     root       128014 Oct  6 19:02 neomail.pl~
-rwsr-xr-x    1 root     neomail     46792 Oct  8 09:59 neomail-prefs.pl
-rwsr-xr-x    1 root     root        46792 Oct  6 14:05
neomail-prefs.pl~


-----Ursprungligt meddelande-----
Fran: [email protected]
[mailto:[email protected]] For Andy Herrero
Skickat: den 8 oktober 2002 12:21
Till: [email protected]
Amne: Re: SV: [Neomail-users] After upgrading to RH8 neomail wont work!


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
_______________________________________________
NeoMail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/neomail-users



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.