🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Tom Limoncelli Sat, 20 Feb 1993 05:01
Changes to FAQ: The INN Tutorial (plus Debugging FAQ) (Part 2 of 2)
#1712
Author: Tom Limoncelli
Date: Sat, 20 Feb 1993 05:01
209 lines
7426 bytes
Posted-By: auto-faq 2.4
Archive-name: inn-faq/diff2

*** FAQ-inn.2-lastposted	Fri Feb  5 00:00:30 1993
--- FAQ-inn.2	Fri Feb 19 16:49:47 1993
***************
*** 45,51 ****
  	What can I do if I can't purchase the O'Reiley And Associates book
  		on Managing Usenet?
  	Getting an active file.
! 	How do I use nntplink?
  	Other cron jobs.
  	After a crash.
  	Debugging someone that is feeding you.
--- 45,52 ----
  	What can I do if I can't purchase the O'Reiley And Associates book
  		on Managing Usenet?
  	Getting an active file.
! 	How do I use nntplink with INN?
! 	How do I use newsgate with INN?
  	Other cron jobs.
  	After a crash.
  	Debugging someone that is feeding you.
***************
*** 56,61 ****
--- 57,63 ----
  	I'm getting groups sent to me that I don't want.
  	When my feeder connects, I get articles but they don't take
  		what's waiting for them.
+ 	Directories are being created with wrong permissions.
  
  
  NOTE:  Read this document through from beginning to end after
***************
*** 280,286 ****
  rename the DBZ files.
  
  Izar Tarandach <izar@cs.huji.ac.il> suggests that another common
! mistake is that innd is started from "root", not "news".  It
  immediately turns itself in user "news" once certain tasks are
  completed.
  
--- 282,289 ----
  rename the DBZ files.
  
  Izar Tarandach <izar@cs.huji.ac.il> suggests that another common
! mistake is that innd wasn't being started by the correct uid.  innd
! (and therefore rc.news) must be started from "root" (not "news").  It
  immediately turns itself in user "news" once certain tasks are
  completed.
  
***************
*** 634,640 ****
--- 637,657 ----
  gives better examples.  Here's a "cookbook" of examples that should
  cover most of your needs.  Debugging tips are also included.
  
+ Always remember that newsfeeds uses "wildmat" matches, not the
+ semi-regular expressions that C news uses.  This means that if you want to get comp.foo and the subgroups under it (comp.foo.bar, comp.foo.baz, etc.) you
+ have to use a statement like:
  
+ comp.foo,comp.foo.*
+ 
+ OR
+ 
+ comp.foo*
+ 
+ BUT NOT
+ 
+ comp.foo.*
+ 
+ 
  ------------------------------
  
  Subject: The ME line in the newsfeeds file.
***************
*** 809,817 ****
  
  Subject: Suddenly my active and history files are owned by root!
  
! rc.news runs from root.  After that, everything else should
! run as news.  More specifically, it sounds like you've run news.daily
! as root.  Make sure all your cron jobs run as news and you'll be fine.
  
  If you have an old "cron" system, you might consider replacing yours
  with one of the many public domain replacements.  If you can't create
--- 826,835 ----
  
  Subject: Suddenly my active and history files are owned by root!
  
! rc.news runs from root.  After that, everything else should run as
! news.  More specifically, it sounds like you've run news.daily as root
! by mistake.  Make sure all your cron jobs run as news and you'll be
! fine.
  
  If you have an old "cron" system, you might consider replacing yours
  with one of the many public domain replacements.  If you can't create
***************
*** 856,867 ****
  for re-use:
  
  sed <active.old >active.new \
!        -e 's/^\([^ ]*\) [0-9]* [0-9]* \([^ ]*\)$/\1 0000000001 000000000 \2/'
  
  
  ------------------------------
  
! Subject: How do I use nntplink?
  
  First of all, I don't personally recommend using this program.  I feel
  that it is a gimick.  However, if you decide to join the INN Instant
--- 874,885 ----
  for re-use:
  
  sed <active.old >active.new \
!        -e 's/^\([^ ]*\) [0-9]* [0-9]* \([^ ]*\)$/\1 0000000000 000000001 \2/'
  
  
  ------------------------------
  
! Subject: How do I use nntplink with INN?
  
  First of all, I don't personally recommend using this program.  I feel
  that it is a gimick.  However, if you decide to join the INN Instant
***************
*** 899,904 ****
--- 917,953 ----
  
  ------------------------------
  
+ Subject: How do I use newsgate with INN?
+ 
+ anselmo@nic.near.net (Ed Anselmo) reports:
+ 
+ > Can someone who's running INN and the news2mail program in the
+ > newsgate package send me a sample of the entry in the newsfeeds
+ > file for a typical bidirectional gateway? Thanks!
+ 
+ This assumes you configured "mail2news" to put a distinctive
+ host-gateway name, like "news-mail-gateway" in your Path: headers.
+ 
+ In /usr/lib/news/newsfeeds:
+ ====================================
+ ##
+ ##  NEWS/MAIL GATEWAY
+ ##
+ 
+ tech-gateway/news-mail-gateway\
+         :ne.nearnet.tech\
+         :Tp:/usr/lib/newsbin/news2mail \
+         nearnet-tech nearnet-ops nearnet-tech-request nic.near.net %s
+ ====================================
+ 
+ On the mailing list side, one of the recipients is:
+ 
+ post-nearnet-tech: "|/usr/lib/newsbin/mail2news -n ne.nearnet.tech -o 'NEARnet News/Ma
+ il Gateway' -d ne"
+ 
+ 
+ ------------------------------
+ 
  Subject: Other cron jobs.
  
  Once a night you should run the "news.daily" script which will
***************
*** 1043,1049 ****
  
  ------------------------------
  
- 
  Subject: When my feeder connects, I get articles but they don't take what's waiting for them.
  
  I hate to say this, but this really shows that you haven't RTFMed very
--- 1092,1097 ----
***************
*** 1055,1059 ****
--- 1103,1129 ----
  there are cookbook examples of what to add every time you set up a new
  feed.
  
+ 
+ ------------------------------
+ 
+ Subject: Directories are being created with wrong permissions.
+ 
+ > Question:
+ >When I received news for /var/spool/news/foo/bar for the first
+ >time, the directories got created:
+ >
+ ># ls -lgR foo
+ >total 1
+ >d-wx-w-rwx  2 news     news          512 Feb  9 00:03 bar/
+ >
+ >What did I do wrong?
+ >
+ >##  Mode that directories are created under.
+ >#### =()<GROUPDIR_MODE          @<GROUPDIR_MODE>@>()=
+ >GROUPDIR_MODE           2775
+ 
+   Answer:
+ You forgot a zero in front of this number, for the C compiler to interpret it
+ as octal instead of decimal.
  
  - * The End * -
-- 
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
Disclaimer:  I do not speak for Mentor Graphics.
             I can't even do the accent.
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