Thread View: news.software.readers
6 messages
6 total messages
Started by Walter Dnes
Sun, 26 Mar 2000 00:00
[slrnpull] Setup questions
Author: Walter Dnes
Date: Sun, 26 Mar 2000 00:00
Date: Sun, 26 Mar 2000 00:00
37 lines
2354 bytes
2354 bytes
I have a linux box running RedHat 6.1. I've downloaded and
installed the .9.6.2 RPMs of both slrn and slrnpull. Looking
at my headers, you'll see that I'm still posting from my Win98
machine. A few details remain to be ironed out...
- 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".
I get permission denied when I try to run slrnpull as an
ordinary user. Here are the current settings. What
should I do?
[root@WDnes bin]# la slr*
-rwxr-xr-x 1 root root 208592 Feb 7 16:10 slrn
-rwxr-s--- 1 news news 47536 Feb 7 16:10 slrnpull
- System setup
My deny file has the usual "ALL:ALL" entry; everything in
inetd.conf is commented out. I (via enduser account)
will be the only person logging on. Any changes required
in there to accomadate slrn/slrnpull?
- score file
I've seen passing mention implying that it doesn't use
standard regular expressions, but uses "s-lang" instead.
If so, I need a pointer to TFM (The Fine Manpage) so I
can RTFM. My specific questions...
1) terminating matches, i.e. how can I match
"comp.test" and *NOT* match "comp.testbed"
2) periods, i.e. ".". Are they escaped as "\."?
--
Walter Dnes <waltdnes@waltdnes.org> http://www.waltdnes.org
SpamDunk Project procmail spamfilters.
A picture is worth a thousand words; unfortunately,
it consumes the bandwidth of ten thousand words.
Re: [slrnpull] Setup questions
Author: Anthony Campbell
Date: Sun, 26 Mar 2000 00:00
Date: Sun, 26 Mar 2000 00:00
32 lines
1988 bytes
1988 bytes
On Sun, 26 Mar 2000 11:58:09 -0500, Walter Dnes <waltdnes@waltdnes.org> wrote: > I have a linux box running RedHat 6.1. I've downloaded and >installed the .9.6.2 RPMs of both slrn and slrnpull. Looking >at my headers, you'll see that I'm still posting from my Win98 >machine. A few details remain to be ironed out... > > - 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". > I get permission denied when I try to run slrnpull as an > ordinary user. Here are the current settings. What > should I do? >[root@WDnes bin]# la slr* >-rwxr-xr-x 1 root root 208592 Feb 7 16:10 slrn >-rwxr-s--- 1 news news 47536 Feb 7 16:10 slrnpull I run slrnpull via sudo. I don't know if this is the approved way to do it. Anthony -- Anthony Campbell - running Linux Debian 2.1 (Windows-free zone) Book Reviews: http://www.pentelikon.freeserve.co.uk/bookreviews/ Skeptical articles: http://www.freethinker/uklinux.net/ "To be forced by desire into any unwarrantable belief is a calamity." I.A. Richards
Re: [slrnpull] Setup questions
Author: Jan Schabbink
Date: Sun, 26 Mar 2000 00:00
Date: Sun, 26 Mar 2000 00:00
20 lines
1428 bytes
1428 bytes
On Sun, 26 Mar 2000 at 18:58 GMT, Walter Dnes wrote: > I'm the only user. But I do try to follow the rule that > "thou shalst not logon as root to run enduser programs". > I get permission denied when I try to run slrnpull as an > ordinary user. Here are the current settings. What > should I do? >[root@WDnes bin]# la slr* >-rwxr-xr-x 1 root root 208592 Feb 7 16:10 slrn >-rwxr-s--- 1 news news 47536 Feb 7 16:10 slrnpull Being also an 'only' user I didn't see anything wrong with: -rwxr-xr-x 1 root root 45960 Mar 16 19:28 slrnpull* Or is there? Jan.
Re: [slrnpull] Setup questions
Author: Jurriaan W Kalkman
Date: Mon, 27 Mar 2000 00:00
Date: Mon, 27 Mar 2000 00:00
52 lines
2787 bytes
2787 bytes
On Sun, 26 Mar 2000 11:58:09 -0500, Walter Dnes <waltdnes@waltdnes.org> wrote: > I have a linux box running RedHat 6.1. I've downloaded and >installed the .9.6.2 RPMs of both slrn and slrnpull. Looking >at my headers, you'll see that I'm still posting from my Win98 >machine. A few details remain to be ironed out... > > - 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". > I get permission denied when I try to run slrnpull as an > ordinary user. Here are the current settings. What > should I do? >[root@WDnes bin]# la slr* >-rwxr-xr-x 1 root root 208592 Feb 7 16:10 slrn >-rwxr-s--- 1 news news 47536 Feb 7 16:10 slrnpull man chmod will tell you if you as normal user (not news) have execute permissions for slrnpull. My own slrnpull is -rwxr-xr-x 1 root root 280744 Mar 26 10:25 /usr/local/bin/slrn -rwxr-xr-x 1 root root 52144 Mar 26 10:16 /usr/local/bin/slrnpull but more importantly, my newsspool dir is drwxr-xr-x 13 jurriaan users 1024 Mar 10 20:07 news so I can run slrnpull as normal user. Now that I see this, drwxr--r-- would be enough. > - System setup > My deny file has the usual "ALL:ALL" entry; everything in > inetd.conf is commented out. I (via enduser account) > will be the only person logging on. Any changes required > in there to accomadate slrn/slrnpull? If you are talking about /etc/hosts.allow and /etc/hosts.deny here (which are part of TCPWrappers, a very useful package indeed) those are only used for connections from the outside - and slrnpull connects TO not FROM the outside. So IMHO no changes are required here. > > - score file That I don't know. Good luck, Jurriaan -- "Bother!" said Pooh, as the sysop locked him out of the system. Linux 2.2.15pre14 SMP up 1 min 2 users load av: 0.11 0.07 0.02
Re: [slrnpull] Setup questions
Author: 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/
Re: [slrnpull] Setup questions
Author: Anthony Campbell
Date: Mon, 27 Mar 2000 00:00
Date: Mon, 27 Mar 2000 00:00
31 lines
1956 bytes
1956 bytes
On 27 Mar 2000 05:12:45 GMT, Jurriaan W Kalkman <thunder7@xs4all.nl> wrote: >man chmod will tell you if you as normal user (not news) have execute >permissions for slrnpull. My own slrnpull is > >-rwxr-xr-x 1 root root 280744 Mar 26 10:25 /usr/local/bin/slrn >-rwxr-xr-x 1 root root 52144 Mar 26 10:16 /usr/local/bin/slrnpull > >but more importantly, my newsspool dir is > >drwxr-xr-x 13 jurriaan users 1024 Mar 10 20:07 news > >so I can run slrnpull as normal user. Now that I see this, drwxr--r-- >would be enough. > On checking up, I find that my system is now set up with all the above permissions, presumably by the Deb package which I used to install slrn, so I no longer need to use sudo. Thank you Debian! Anthony -- Anthony Campbell - running Linux Debian 2.1 (Windows-free zone) Book Reviews: http://www.pentelikon.freeserve.co.uk/bookreviews/ Skeptical articles: http://www.freethinker/uklinux.net/ "To be forced by desire into any unwarrantable belief is a calamity." I.A. Richards
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