πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85757

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

#85757
From: Tony
Date: Fri, 05 Jul 2013 22:04
53 lines
3572 bytes
In news.software.nntp, Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid>
wrote:

>Hi Tony,
>
>> When I try and use pullnews, as a regular user, the script believes it's
>> running as 'news', and so fails, because a) it can't create locks in
>> /usr/lib/news, and it can't find the .pullnews file (because it's
>> looking in /usr/lib/news, not /home/user).
>
>     http://www.eyrie.org/~eagle/software/inn/docs-2.5/pullnews.html
>
>This is what the "-c" flag is for.

Not really, and it didn't used to be necessary.

>> 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.

>> Use of uninitialized value $opt_H in lc at /usr/lib/news/bin/pullnews line 212.
>> shlock: shlock: Can't open "shlock26783", Permission denied: Permission denied
>> cannot create lockfile /usr/lib/news/.pullnews.pid
>
>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'm sure I've run pullnews as a non-news user in Squeeze, but maybe that
>> was working by luck rather than design?
>
>$ENV{HOME} is where pullnews looks at, in INN 2.5.x.
>This behaviour will change to <pathdb> in INN 2.6.0.

$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).

You can test this simply by having pullnews print $ENV{HOME}, it's always
/usr/lib/news on Debian, not the home directory of the actual executing
user.
-- 
Tony Evans
Seeking archives for uk.* from 1998 and older.  Especially interested
in uk.net.news.* and any groups which preceded uk.net.news.* for 
hierarchy management (uk.misc? uk.net?).
Technical Details
Message-ID: <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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!nntp.giganews.com!mf3no4408769wib.1!news-out.google.com!b5ni42587wiz.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!matrix.darkstorm.co.uk!.POSTED!not-for-mail
References: <kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <kr7fsc$a2g$1@matrix.darkstorm.co.uk>
Subject: Re: pullnews (Debian Wheezy, inn2-lfs) broken?
Date: Fri, 05 Jul 2013 23:04:14 +0100
From: Tony <tony@darkstorm.invalid>
References: <kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!nntp.giganews.com!mf3no4408769wib.1!news-out.google.com!b5ni42587wiz.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!matrix.darkstorm.co.uk!.POSTED!not-for-mail
X-Received: by 10.180.210.168 with SMTP id mv8mr3968521wic.0.1373061837135;
Newsgroups: news.software.nntp
Organization: Organised? Me? Nah!
Lines: 53
Reply-To: tony@darkstorm.co.uk
NNTP-Posting-Host: blmyAcSH3qrT0c/m70BkWUGM/xgXuGdr3l0rYAH3gSc=
Mime-Version: 1.0
X-Trace: matrix.darkstorm.co.uk T8Zr+5ll/rLi+bgy79OmQytJ+z3/OqAawYKZuthX5xg==
X-Complaints-To: abuse@matrix.darkstorm.co.uk
NNTP-Posting-Date: Fri, 5 Jul 2013 22:03:56 +0000 (UTC)
X-User-ID: 57ZC41n64AdrXhgSwnQLra71yFH4SeZus1z16mntJtw=
X-Newsreader: Forte Agent 6.00/32.1186
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Original-Bytes: 3356