From owner-freebsd-questions@freebsd.org Wed Aug 28 14:15:53 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E1F69DDE14 for ; Wed, 28 Aug 2019 14:15:53 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46JST50pcrz4GMC for ; Wed, 28 Aug 2019 14:15:52 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: by mail-io1-xd34.google.com with SMTP id o9so6191643iom.3 for ; Wed, 28 Aug 2019 07:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jtKsFoSS1TFmQvwC2nBGe1NbT6DC1RfR9LdMsdbulOw=; b=jVTsGhzJP0LNz0xNl/G9ZXdkwrksSHzEdxrgk3LHo+AafQO0rrlWp5V8nXdGDyXaTh tFLw43wcYI2jQ7aB7JRVZCKnoYDifp3v7v0JriaIgOQDjoWKZRmnYU8j2hPhTNupjF+5 w9intTg+1/h1DbtMVFEClvyCYwEP4owBBehUVX+JfwVixJLx310pn0JTaMQWSog4tjX/ mtOgxowP7WLpmTMOJT7ZT2oAC82ILr/CRuIKeoi6NSMux1U1oFU/a6Dpr1hviR4h02NP KbLn8rlzQWqoeGLNJumN+cHFk0avQVclOKknBA0IqaVLJ3DBRyajtRYU3HQnBKitmkKN iItg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jtKsFoSS1TFmQvwC2nBGe1NbT6DC1RfR9LdMsdbulOw=; b=A7/u0Wl1q1z3aukT2y+wemPH7oR6oc/0WbbKUmlGXXvNZllWeyhYlFBqMM9XTAskLa /6i0/G9yHU0SAqqMopFmWLTLlN98ktl9BJ2gIneB0Q6sNqSrQ26KZV8nzx5mUGBIbpR2 CQPn2Und7jph16S3URoxMrt5UHKo2QN2GIkxA0BgoJinUE1X8NxR/KAe0pAwlsQezrOk yitkfm8+zfM2hCyJ/Vzv5ZTcW/LXUtr3Ix23D2rkdirjCJ6b7+mgEd7q9SEJzMn5fPRd aiwugsXe7DFfEI7jHpNFsvJZ4ogEw5h59A/BIHTAeszwATswShMI1wSMzWczroOAJ9rL X/OQ== X-Gm-Message-State: APjAAAW7xx3EQiEVPewKcIU+b0gmqTQwyKuuf6uLNp+96UdVc0uM6tuD OgAbJ4q/1B1zb62RysAEG0fOqDLFr31zy1Kd5LI= X-Google-Smtp-Source: APXvYqzYi1UmRNgTU40+WtKiurcuUBBrMqjFSe4vMVYn6DBWtZj+ss8dD5C0XVZlhhT9Ro5nu9h8PB0+LGNJmMg/XZY= X-Received: by 2002:a6b:8ed7:: with SMTP id q206mr4638323iod.120.1567001751381; Wed, 28 Aug 2019 07:15:51 -0700 (PDT) MIME-Version: 1.0 References: <8f4b383d-5c50-1f52-c6d0-95ff8e63ea66@gmail.com> <428030f8-4b77-0f48-0c29-2ac3dc4cf965@gmail.com> In-Reply-To: <428030f8-4b77-0f48-0c29-2ac3dc4cf965@gmail.com> From: William Dudley Date: Wed, 28 Aug 2019 10:15:38 -0400 Message-ID: Subject: Re: openwebmail broke with latest update To: MJ Cc: freebsd-questions X-Rspamd-Queue-Id: 46JST50pcrz4GMC X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jVTsGhzJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of wfdudley@gmail.com designates 2607:f8b0:4864:20::d34 as permitted sender) smtp.mailfrom=wfdudley@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-3.57), ipnet: 2607:f8b0::/32(-2.85), asn: 15169(-2.32), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2019 14:15:53 -0000 /var/log/openwebmail.log doesn't give more than the error message. I can't imagine what more logging would accomplish -- the Perl tries a setgid, and fails. And then it prints the error message and exits. Bill This email is free of malware because I run Linux. On Tue, Aug 27, 2019 at 2:02 AM MJ wrote: > Oops, not too clear. > When I said I think it's in another location, I meant the error message is > in at least two files, one being the openwebmail.pl script. I didn't > bother looking in the other because it seemed logical that the problem is > in the login() function of openwebmail.pl > > > On 27/08/2019 3:21 pm, MJ wrote: > > Hi Bill, > > > > > > On 27/08/2019 1:43 pm, William Dudley wrote: > >> MJ, > >> > >> Again, thanks for your time on this. > >> My comments are interspersed below: > >> > >> On Mon, Aug 26, 2019 at 1:53 AM MJ wrote: > >> > >>> Hi Bill, > >>> > >>> On 26/08/2019 12:30 am, William Dudley wrote: > >>>> Mark, > >>>> > >>>> Thanks for your suggestions. > >>>> > >>>> I left my debugging attempts out of my email to the list. > >>>> > >>>> I checked the permissions, and they are as they should be: 4755 for > >>>> openwebmail.pl, owned by root:mail. > >>> Can you run the openwebmail.pl script in the directory? > >>> > >> If you mean run it from the command line, yes, I can, it poops out the > >> login screen. > >> The bug occurs if I successfully login to openwebmail -- then I get the > >> error message. > > > > Yes that's the one because it's the script that contains login() and > sets group/user ids and ultimately fails (I think - because it's also in > another location which I will check out later) > > > > > >>> Look, curiosity took hold and I decided to install everything in a new > VM, > >>> :-) > >>> > >>> FreeBSD freebsd 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64 > >>> > >>> (and that may be a problem, the version of bsd though I doubt it.) > >>> > >> I'm running 11.3, and I fear that the version of either Perl or > openwebmail > >> is different between 11.3 and 12.0, > >> such that your test, while useful, may not have much bearing on my > current > >> situation. At least, it suggests > >> that, when I upgrade to 12.x, openwebmail may once again work. > >> > >> My pkg versions are: > >> perl5-5.30.0 > >> openwebmail-2.53_4 > >> apache24-2.4.41 (though I very much doubt apache has anything to do > with > >> the error) > > > > The only difference is I'm running perl: perl5-5.28.2 > > > > Yes, all the files are present; openwebmail isn't failing to run, it's > >> failing to do a change group. > >> For fun, I just uninstalled and re-installed openwebmail, to make sure > all > >> files are present. There > >> was no change in the failure mode; still fails to change group. > >> > >> Thanks, > >> Bill Dudley > > > > You know, openwebmail produces a log in /var/log. I just checked mine > and it has some handy information. > > > > Checking the code quickly, you might be able to enable more verbose > debugging. First check your log. > > > > Regards, > > > > Mark > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > >