🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85758

Re: pullnews (Debian Wheezy, inn2-lfs) broken?

#85758
From: Julien ÉLIE
Date: Sat, 06 Jul 2013 16:33
65 lines
4109 bytes
Hi Tony,

>>> tony@matrix:~$ /usr/lib/news/bin/pullnews -k 100 -r uk.net -g uk.net
>>
>> You should add "-c /path/to/pullnews.marks".
>
> That won't fix the issue with locks.

Why won't it be fixing it?
If you use "-c /path/to/pullnews.marks", the lock will be written in the 
file /path/to/pullnews.marks.pid so your user "tony" should be able to 
access it.


>>> Use of uninitialized value $opt_H in lc at /usr/lib/news/bin/pullnews line 212.
>>
>> Probably a new warning in the latest version of Perl.  I will have a look.
>
> No, it's not a new warning, it's a failure because the user 'tony' can't
> write locks in /usr/lib/news/ which is the home dir for 'news', which
> pullnews now assumes you're running everything as.

I was speaking about the "use of uninitialized value $opt_H in lc" warning.


> $ENV{HOME} when I run pullnews is /home/tony, but pullnews tries to use
> /usr/lib/news - it's picking up the 'news' user home directory, and
> overriding the user running pullnews.
>
> That's new in Wheezy, and it's broken, IMO, unless pullnews is never
> intended to be run as a non-news user (which it used to be in the past).

OK, I understand what happened.

The behaviour has changed in Wheezy because pullnews uses INN::Config 
(to properly handle locks) whereas it previously did not.
As innshellvars* & INN::Config are setting $HOME to the home of the news 
user in INN 2.4.x (and probably before) and 2.5.x, the path changed.  It 
therefore generates the unfortunate behaviour you are seeing.  I did not 
see it when testing the addition of INN::Config to pullnews because I am 
using the news user...  Sorry.

One solution would be to remove the line
$ENV{'HOME'} = ${pathnews};
from the file Config.pm shipped with INN.

Another solution would be to add "-c /home/tony" to the pullnews you are 
running.  Did you test that?  I do not understand why you would have an 
error for the lock file if you use "-c /home/tony"; the lock file is 
written in your home directory.


I suggest to use "-c /home/tony" because it will work with Wheezy, and 
also with future INN versions.
Starting from INN 2.6.0, $ENV{'HOME'} is no longer overriden by 
innshellvars* & INN::Config but pullnews will still need "-c /home/tony" 
when run as another user than the news user.  The new default value is 
<pathdb> (where the active and history files are) instead of $HOME.  And 
the file is <pathdb>/pullnews.marks (instead of .pullnews, a "hidden" file).

-- 
Julien ÉLIE

« Et vous allez reprendre votre bateau… Et, mergitur ou pas,
   fluctuat ! Compris ! Fluctuat ! » (Goudurix)
Technical Details
Message-ID: <kr9gtn$2k7$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.matabio.net!jeffrey.matabio.net!news.trigofacile.com!.POSTED.aaubervilliers-652-1-190-49.w86-218.abo.wanadoo.fr!not-for-mail
References: <kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$1@news.trigofacile.com> <kr7fsc$a2g$1@matrix.darkstorm.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <kr9gtn$2k7$1@news.trigofacile.com>
Subject: Re: pullnews (Debian Wheezy, inn2-lfs) broken?
Date: Sat, 06 Jul 2013 18:33:58 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$1@news.trigofacile.com> <kr7fsc$a2g$1@matrix.darkstorm.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.matabio.net!jeffrey.matabio.net!news.trigofacile.com!.POSTED.aaubervilliers-652-1-190-49.w86-218.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 6 Jul 2013 16:33:59 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-652-1-190-49.w86-218.abo.wanadoo.fr:86.218.77.49";
 logging-data="2695"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8;
In-Reply-To: <kr7fsc$a2g$1@matrix.darkstorm.co.uk>
Lines: 64
X-Original-Bytes: 3927