Article View: news.software.readers
Article #59750Re: [slrnpull] Setup questions
From: Curly++
Date: Mon, 27 Mar 2000 00:00
Date: Mon, 27 Mar 2000 00:00
87 lines
4396 bytes
4396 bytes
In news.software.readers, Walter Dnes proclaimed:
> - Permissions
> I'm the only user. But I do try to follow the rule that
> "thou shalst not logon as root to run enduser programs".
You know, I realy think it would be easier for you to run leafnode.
Leafnode is very easy to set up. After reading your messages,
I'm convinced leafnode is easier to use than slrnpull! Leafnode
is also not reader-specific, or even host-specific. Should you
get another computer connected locally and decide to run <horror>
MS-Windows and OE </horror> leafnode will happilly support that
too, at the same time.
I'm notorious for <blush> not reading documentation </blush> yet
I managed to get leafnode running on the first try.
Slrn thinks leafnode is a real newsserver, because it is. It's
just scaled down to be super-easy to administer. In fact, after
being very dissapointed at how *little* there was in the config
file, I haven't had to fiddle with anything, except the fetchnews
cycle.
There are two ways to run fetchnews (equivalent to issuing the
slrnpull command), the choice depends on whether you have a
permanent connection or a diallup connection. (The same applies
to slrnpull, but leafnode is easier to use.)
--------------------------------
DIALLUP: manually pick up news
The only problem you might run into with leafnode is that
fetchnews must be run as either root or news. You've already
been given a number of solutions to that problem for slrnpull,
I'm surprised this wasn't one of them. You can run fetchnews
as setuid-news. (BTW, this would also work for slrnpull) The
commands would be: (ignore the '#' and everything after it)
su # become root
chown news `which fetchnews` # make "news" own the command
chmod a+x `which fetchnews` # let everyone (you) run fetchnews
chmod u+s `which fetchnews` # make fetchnews think you're news
exit # STOP BEING ROOT
If you've reached the point where "slrnpull will work, d***it!",
then of course you can substitute slrnpull for fetchnews.
--------------------------------
PERMANENT CONNECTION: pick up news automatically
Most people pick up news on a regular schedule. Once a day,
once an hour, whatever. This is dead easy on Linux. Each
user may have a list of commands that run at a certain time.
Let's say you want to pick up news at 6pm and 8pm 'cause you
only read news in the evening. Become the news user, edit
a text file (I call mine crontab 'cause it's easy to remember)
and run the, uh, crontab command with that file. The content
of the file will be three lines (the other one is to wipe old
articles):
PATH=/usr/local/bin:/bin:/usr/bin
* 6 * * * /bin/nice /usr/local/sbin/texpire
* 18,20 * * * /bin/nice /usr/local/sbin/fetchnews
and the commands to create it...
su # be root, 'cause *you* can't become news
su news # only root can become news!
cd # go to news' home directory
vi crontab # use your favorite text editor, make the file
crontab crontab # activate the file
exit # STOP BEING NEWS
exit # STOP BEING ROOT
And of course, (I keep saying this, don't I?) you could do the
same thing to make slrnpull run automatically.
--
Oisin "Curly++" Curtin ocurtin@SPAM.usa.net
Surface Liaison, Minetown Digger Send no SPAM.
http://pages.infinit.net/curlypp/
Technical Details
Message-ID:
<slrn8duvhl.af2.ocurtin@jarod.oc>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<n6esds06aobhlcoknj3mvpti0d25qncfe0@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn8duvhl.af2.ocurtin@jarod.oc> Subject: Re: [slrnpull] Setup questions Date: Mon, 27 Mar 2000 00:00:00 +0000 From: ocurtin@NOSPAM.usa.net (Curly++) References: <n6esds06aobhlcoknj3mvpti0d25qncfe0@4ax.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 602981667 X-Complaints-To: abuse@videotron.net X-Trace: weber.videotron.net 954170942 24.200.125.165 (Mon, 27 Mar 2000 10:29:02 EST) Organization: The Minetown Digger User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: ocurtin@NOSPAM.usa.net NNTP-Posting-Date: Mon, 27 Mar 2000 10:29:02 EST Newsgroups: news.software.readers