Thread View: news.software.nntp
9 messages
9 total messages
Started by Dave H
Fri, 18 Jun 2010 21:22
inn on ARM cpu
Author: Dave H
Date: Fri, 18 Jun 2010 21:22
Date: Fri, 18 Jun 2010 21:22
28 lines
2417 bytes
2417 bytes
I have compiled inn 2.5.2 on this plugbox with a Kirkwood cpu, but it won't start on port 119 (or any port below 1024) as user news, but will as root. As a temp measure, I have it on port 1919 with iptables forwarding 119, running as news. I have installed inn many times, either with RPM or compiling, but never had trouble. With this compile, had to remove gnu next to linker in Makefile.global, thus PYTHON_LIBS = -L/usr/lib/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,--as-needed and it all seems to run fine, except the news/119 issue. These were my options ./configure --sysconfdir=/etc/news --enable-key --prefix=/opt/news --with-syslog-facility=LOG_NEWS --with-perl --with-python --with-berkeleydb --with-zlib --with-openssl --with-sasl Have tried starting with /opt/news/bin/rc.news start and su news /opt/news/bin/rc.news start Only compiling with --with-news-user=root --with-news-group=root gets it going on 119 Taking the opportunity to say thanks for inn Dave
Re: inn on ARM cpu
Author: Russ Allbery
Date: Fri, 18 Jun 2010 21:26
Date: Fri, 18 Jun 2010 21:26
24 lines
2221 bytes
2221 bytes
"Dave H" <pepedog@pepedog.com> writes:
> I have compiled inn 2.5.2 on this plugbox with a Kirkwood cpu, but it
> won't start on port 119 (or any port below 1024) as user news, but will
> as root.
Did you do make install as root? Or, asked another way, is innbind
installed setuid root? It has to be in order to bind to port 119.
> I have installed inn many times, either with RPM or compiling, but never
> had trouble.
> With this compile, had to remove gnu next to linker in Makefile.global, thus
> PYTHON_LIBS = -L/usr/lib/python2.6/config -lpython2.6 -lpthread -ldl
> -lutil -lm -Xlinker -export-dynamic -Wl,--as-needed
> and it all seems to run fine, except the news/119 issue.
What "gnu" are you referring to? What was the original line, in other
words?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: inn on ARM cpu
Author: Dave H
Date: Fri, 18 Jun 2010 22:03
Date: Fri, 18 Jun 2010 22:03
41 lines
3090 bytes
3090 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87aaqs117j.fsf@windlord.stanford.edu... > "Dave H" <pepedog@pepedog.com> writes: > >> I have compiled inn 2.5.2 on this plugbox with a Kirkwood cpu, but it >> won't start on port 119 (or any port below 1024) as user news, but will >> as root. > > Did you do make install as root? Or, asked another way, is innbind > installed setuid root? It has to be in order to bind to port 119. > >> I have installed inn many times, either with RPM or compiling, but never >> had trouble. >> With this compile, had to remove gnu next to linker in Makefile.global, >> thus >> PYTHON_LIBS = -L/usr/lib/python2.6/config -lpython2.6 -lpthread -ldl >> -lutil -lm -Xlinker -export-dynamic -Wl,--as-needed >> and it all seems to run fine, except the news/119 issue. > > What "gnu" are you referring to? What was the original line, in other > words? Compiled as using user news (logged in as root), I make install(d) as root. I even changed (experimentally) whole bin directory to root:root Checked innbind and setuid not setuid. Changed and still not running on 119 Jun 18 15:00:02 pogo innd: cannot exec innbind for 0.0.0.0,119: Permission denied Jun 18 15:00:02 pogo innd: innbind returned no output, assuming failure Jun 18 15:00:02 pogo innd: innbind failed for 0.0.0.0,119 Jun 18 15:00:02 pogo innd: SERVER cant listen on any sockets The line was- PYTHON_LIBS = -L/usr/lib/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm -Xlinker gnu -export-dynamic -Wl,--as-needed Thanks Dave
Re: inn on ARM cpu
Author: Russ Allbery
Date: Fri, 18 Jun 2010 22:18
Date: Fri, 18 Jun 2010 22:18
23 lines
2028 bytes
2028 bytes
"Dave H" <pepedog@pepedog.com> writes:
> Compiled as using user news (logged in as root), I make install(d) as root.
> I even changed (experimentally) whole bin directory to root:root
> Checked innbind and setuid not setuid.
> Changed and still not running on 119
> Jun 18 15:00:02 pogo innd: cannot exec innbind for 0.0.0.0,119: Permission
> denied
news cannot run the innbind program. Check file permissions and be sure
that it's executable by the news user.
> The line was-
> PYTHON_LIBS = -L/usr/lib/python2.6/config -lpython2.6 -lpthread -ldl
> -lutil -lm -Xlinker gnu -export-dynamic -Wl,--as-needed
Hm, that looks like a bug in Python on your platform.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: inn on ARM cpu
Author: Dave H
Date: Sat, 19 Jun 2010 09:27
Date: Sat, 19 Jun 2010 09:27
14 lines
1985 bytes
1985 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87wrtwyogy.fsf@windlord.stanford.edu... > news cannot run the innbind program. Check file permissions and be sure > that it's executable by the news user. You was right, fixed and now it's running great. Thank you once again. > Hm, that looks like a bug in Python on your platform. Is there a quick way to test something on the Python filter? Dave
Re: inn on ARM cpu
Author: Julien ÉLIE
Date: Sat, 19 Jun 2010 10:17
Date: Sat, 19 Jun 2010 10:17
56 lines
3193 bytes
3193 bytes
Hi Dave,
> Is there a quick way to test something on the Python filter?
12:13 news@trigo ~% ctlinnd reload filter.python ''
Ok
gives something like this in news.notice:
Jun 19 12:13:40 news innd: ctlinnd command o:filter.python:
Jun 19 12:13:40 news innd: python: filter_before_reload executing...
Jun 19 12:13:40 news innd: python: I'm just reloading, so skip the formalities.
Jun 19 12:13:40 news innd: python: spamfilter successfully hooked into INN
Jun 19 12:13:40 news innd: SERVER Python filtering enabled
Jun 19 12:13:40 news innd: SERVER reload filter.python
And also:
12:14 news@trigo ~/work/inn/trunk% ctlinnd pause 'test'
Ok
12:14 news@trigo ~/work/inn/trunk% ctlinnd go 'test'
Ok
Jun 19 12:14:57 news innd: ctlinnd command m:test
Jun 19 12:14:57 news innd: python: state change from running to paused - test
Jun 19 12:15:03 news innd: ctlinnd command h:test
Jun 19 12:15:03 news innd: python: state change from paused to running - test
In filter_innd.py, you can locate filter_messageid and use something
like this:
def filter_messageid(self, msgid):
if msgid[0:10] == '<trigotest':
return "Nope!"
return ""
Reload the filter and innd should now reject articles whose message-ID
starts with '<trigotest'.
I think all these tests would prove the Python filter works fine.
--
Julien ÉLIE
« -- D'ailleurs je vais préparer de la potion magique qui ne
servira bien entendu que contre un retour éventuel des Romains !
-- Mais, pour l'heure, les Romains ne sont pas encore
revenus de leur mésaventure. » (Astérix)
Re: inn on ARM cpu
Author: Dave H
Date: Sat, 19 Jun 2010 13:51
Date: Sat, 19 Jun 2010 13:51
28 lines
2705 bytes
2705 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:hvi5g2$315$1@news.trigofacile.com... > Hi Dave, > >> Is there a quick way to test something on the Python filter? > > 12:13 news@trigo ~% ctlinnd reload filter.python '' > Ok This worked fine for me. Jun 19 06:07:16 pogo innd: ctlinnd command o:filter.python:h Jun 19 06:07:16 pogo innd: python: filter_before_reload executing... Jun 19 06:07:16 pogo innd: python: I'm just reloading, so skip the formalities. Jun 19 06:07:16 pogo innd: python: spamfilter successfully hooked into INN Jun 19 06:07:16 pogo innd: SERVER Python filtering enabled Jun 19 06:07:16 pogo innd: SERVER reload filter.python h Just a little suggestion for next release, I run a couple of private servers with no feeds, and occasionally spammers hit me. So I would like to see these put into filters, don't see these readers would be used by a regular person, but I may be wrong? X-Newsreader: BNews2004v20 X-Newsreader: MesNews/1.08.03.00 Thanks Dave
Re: inn on ARM cpu
Author: Thomas Hochstein
Date: Sat, 19 Jun 2010 15:30
Date: Sat, 19 Jun 2010 15:30
13 lines
1827 bytes
1827 bytes
Dave H schrieb: > So I would like to see these put into filters, don't see these readers would > be used by a regular person, but I may be wrong? > > X-Newsreader: BNews2004v20 > X-Newsreader: MesNews/1.08.03.00 MewNews is a perfectly fine newsreader (currently under development), see <http://www.mesnews.net/gb/>. 1.08.03.00 is the current version. Regards, -thh
Re: inn on ARM cpu
Author: Dave H
Date: Sat, 19 Jun 2010 16:01
Date: Sat, 19 Jun 2010 16:01
22 lines
2674 bytes
2674 bytes
"Thomas Hochstein" <thh@inter.net> wrote in message news:nsn.1006191730.2134@thorondor.akallabeth.de... > Dave H schrieb: > >> So I would like to see these put into filters, don't see these readers >> would >> be used by a regular person, but I may be wrong? >> >> X-Newsreader: BNews2004v20 >> X-Newsreader: MesNews/1.08.03.00 > > MewNews is a perfectly fine newsreader (currently under development), > see <http://www.mesnews.net/gb/>. 1.08.03.00 is the current version. > Thanks Thomas. I think spammer that hit me did so because it can all be run from a usb stick, and probably prepared posts elsewhere, then used opportunity of someone else's PC to do the deed? Dave
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads