Article View: news.software.nntp
Article #64103Re: cnews
From: B'ichela
Date: Fri, 21 Feb 2003 19:04
Date: Fri, 21 Feb 2003 19:04
84 lines
5611 bytes
5611 bytes
In article <WAr5a.2590$WB6.472231985@newssvr13.news.prodigy.com>, Reza Ambler wrote: > does cnews have to run as root or can you runt it as another user? > Becuase im' worried about security... Cnews is not designed to run as root. normally it runs as user news and group news. For this reason its important to chown all files/directories of news to news.news. Heres a real world example. on my system news has a /etc/passwd entry that defines c-news's home as /usr/lib/news now Cnews has its own set of executables in /usr/llb/newsbin fastest way of setting proper owner after you do a normal install (read the installation instructions please). This is assuming you are using the gnu chown command and you have a user and group of news chown -Rv news.news /usr/lib/news chown -Rv news.news /usr/lib/newsbin Now before anything you must know you do news maintainence as news NEVER root! (you can but then you will become intimate with chown every time you make changes). therefore as root su - news you then do the needed tasks using the tools and exit. Now since News needs processing you would create these type of entries under the news user. (please note, these may have to be modified for your system) if you are su'ed in as news doing crontab -e will allow you to add these. if you are root. doing crontab -e -u news will allow you to edit new's crontab while being root. Don't get in the habit! start su'ing and thats the best place to start with your discipline of being news when editing c-new's config. # take the compressed batches that came in from other systems # also, post (locally) articles that originated here #20 * * * * /usr/lib/newsbin/input/newsrun */10 * * * * /usr/lib/newsbin/input/newsrun 2>&1 >/dev/null & # batch 'em up to go out # 0 * * * * /usr/lib/newsbin/batch/sendbatches myfeedsite # expire C-news 59 0 * * * /usr/lib/newsbin/expire/doexpire # monitor stuff and report if needed 10 5 * * * /usr/lib/newsbin/maint/newsdaily & 00 5 * * * /usr/lib/newsbin/maint/newswatch & # turn processing of incoming news batches off 6:30AM - 4:00 PM #30 6 * * * /usr/lib/newsbin/input/newsrunning off >/dev/null & 00 16 * * * /usr/lib/newsbin/input/newsrunning on >/dev/null & There are several resources on c-news available including whats in the cnews archive itself. look in the doc and man directories for several files describing cnews and its usage. There are several postscript documents that explain how to use cnews. Another set of documents deal with nntpd (it was originally a seperate package that I begain to combine with cnews). this is in the nntp-1.5.12.1-bichela subdirectory. This is the nntpd system. While it works fine with Netscape and pine. it will bomb royally with Slrn 0.9.7.4 UNLESS you add a entry into your slrn.rc file for reading news. The line to add to either .slrnrc or /usr/local/etc/slrn.rc set max_queued_groups 1 Btw cnews works fine with suck without a hitch. If you go to my ftp site you will find lots of unusual bits/pieces for cnews (including an older version). my ftp site is ftp://pinkrose.net.dhis.org/pub/Linux Last thing, Cnews is written on shell scripts. Therefore it is very easy to modify c-news to your liking. I run it with bash. but if you are savvy enough you could modify it to work with the C-shell or tcsh, just be aware if you do that. you are on your own. also be sure to have a recent version of sed/awk otherwise c-news is gonna hate you. an older awk on slackware 3.9 gave me a migrain until I replaced it with a newer gnu awk. If one is savvy enough they could create a nice config tool for cnews. I am trying to learn perl. Also a ./configure system using autoconf would be even more awsome. A tagline from Comp.os.Linux.Advocacy: (I keep hearing RTFM, but I'm not sure where TFM is). From the Desk of the Sysop of: Planet Maca's Opus, a Free open BBS system. Telephone 860-738-7176 300-33.6kbps Telnet://pinkrose.dhis.org. Open 24/7! The New Cnews maintainer B'ichela
Technical Details
Message-ID:
<slrnb5csu9.7vl.mdalene@pinkrose.dhis.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr10.news.prodigy.com.POSTED!not-for-mailReferences:
<PKB4a.1941$4q1.161291412@newssvr21.news.prodigy.com> <slrnb57od8.4ec.mdalene@pinkrose.dhis.org> <WAr5a.2590$WB6.472231985@newssvr13.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnb5csu9.7vl.mdalene@pinkrose.dhis.org> Subject: Re: cnews Date: Fri, 21 Feb 2003 19:04:21 GMT From: B'ichela <mdalene@pinkrose.net.dhis.org> References: <PKB4a.1941$4q1.161291412@newssvr21.news.prodigy.com> <slrnb57od8.4ec.mdalene@pinkrose.dhis.org> <WAr5a.2590$WB6.472231985@newssvr13.news.prodigy.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr10.news.prodigy.com.POSTED!not-for-mail Newsgroups: news.software.nntp User-Agent: slrn/0.9.7.4 (Linux) Sender: news@pinkrose.local.net (news) Organization: Home of the new Cnews/nntpd daemon development X-Nntp-Posting-Host: pinkrose.local.net Lines: 83 NNTP-Posting-Host: 69.0.3.142 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr10.news.prodigy.com 1045854261 ST000 69.0.3.142 (Fri, 21 Feb 2003 14:04:21 EST) NNTP-Posting-Date: Fri, 21 Feb 2003 14:04:21 EST X-UserInfo1: TSU[@IONXJTUBR\YBJJL_VDAPZ_LPUDO@HTHOCULF@^PGDTFOG[]VCWZBL[\YUWHANGYZEFNHFZPNLOBUNSS^_LGEVWEY\PHO@YJSSWBBDT\PFD^ESBTXVCCMTD]JCJLE\_IJMFNRY]SWE[S[D_CNB__ZK^VGVCKHA[S@COB^[@ZQSDFQ\BPMS@DZVUKQTJL