🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by davis Tue, 25 Aug 1998 00:00
slrn FAQ
#42893
Author: davis
Date: Tue, 25 Aug 1998 00:00
359 lines
16598 bytes
Archive-name: usenet/software/slrn-faq
Posting-Frequency: bi-weekly

This is the slrn FAQ.  Send comments, suggestions, or corrections to
davis@space.mit.edu.

slrn is a newsreader that runs under Unix, VMS, OS/2, and Win32
operating systems.  The latest version of slrn is available via
anonymous ftp from <ftp://space.mit.edu/pub/davis/slrn/>.  It is also
available from:

  ftp://ftp.uni-stuttgart.de/pub/unix/misc/slang/
  ftp://ftp.fu-berlin.de/pub/unix/news/slrn/
  ftp://ftp.ntua.gr/pub/lang/slang/

More information about slrn is available on the World Wide Web via
<http://space.mit.edu/%7Edavis>.

If you are viewing this FAQ with slrn, press `g' to go from one subject to
the next.

Questions addressed:

0.  Where can I find more information about slrn?
1.  Instead of drawing lines for the thread tree, I see `mq'.  Why?
2.  I do not see a thread tree. Why?
3.  When I mark an article as read, why aren't cross-posts marked as read also?
4.  What is a prefix argument?
5.  How do I re-read articles in a newsgroup that I have already read?
6.  Can I use the mouse with slrn?
7.  How do I use the mouse in an Xterm to cut/paste?
8.  What is the easiest way to uudecode articles?
9.  How do I cross-post an article?
10. How do I find the previously read articles of a thread?
11. Why doesn't the `L' command work as advertised?
12. Where can I find more information about slrn?
13. How can I set my `From' line for my posts?

Answers:

------------------------------

Subject: 0. Where can I find more information about slrn?

    Although there is a man page, it probably does not cover the
    latest slrn features.  A better source of information about new
    features may be found in the `changes.txt' file that is
    distributed with slrn.  Also, all .slrnrc options are described in
    the example `slrn.rc' file that is distributed with slrn.

    More help may also be available from 
    
        http://space.mit.edu/%7Edavis/slrn.html

    In particular, this web page contains links to other sources of
    slrn information.

    You can also participate in the development of slrn by improving
    its documentation.  If you would like to submit some documentation
    for slrn, please use a text-only format.  At some point, I plan to
    put all of slrn's documentation in SGML format and then process
    the SGML document to produce man pages, html pages, TeX, RTF,
    etc...

    Finally, if you create additional documentation for slrn and make
    it available via the WWW, please let me know about it and I will
    create a link to your web page.

------------------------------

Subject: 1. Instead of drawing lines for the thread tree, I see `mq'.  Why?

    There are a couple of reasons for this.  The simplest may be that the
    font that you are using does not support line drawing characters.
    Simply switching fonts to a dec-vt220 compatible font may solve the
    problem.  This is usually the case with Windows telnet applications.

    Another reason for this is that your terminfo file may not be set up
    properly. The obvious solution is fix the terminfo file.  However, this
    may not be possible without the correct tools (untic and tic) and many
    systems do not have those tools installed.

    Although slang is a terminfo based system, there is another solution
    based on termcap if you are using version 0.99.18 of slang or later.
    First of all, get a termcap entry that contains the appropriate
    capabilities for an alternate character set, that is, the termcap `ac',
    `ae', `as', and possibly `eA' capabilities.  Let's call this file
    `my_termcap'.  Then do:

      setenv TERMCAP `pwd`/my_termcap
      eval `tset -s terminal-name`

    (Replace `terminal-name' by your terminal name).  `tset' will then read
    and parse the my_termcap file and set the TERMCAP variable
    appropriately. You will want to put this in your .login file.

------------------------------

Subject: 2. I do not see a thread tree. Why?

    See the answer to the previous question.

------------------------------

Subject: 3. When I mark an article as read, why aren't cross-posts marked
            as read also?

    For slrn to mark an article as read in more than one group, it needs
    information about what groups the article was cross-posted to.  This
    information is provided by the Xref header.  Not all servers provide
    this header so this feature will not work with those servers.

    Now suppose that your server provides the Xref header as one of the
    headers of the article and at the same time, provides support for the
    NOV database (via the XOVER nntp command).  In this case, unless the
    server has been configured to provide the Xref header as part of the NOV
    database, slrn will not be able to get the header without accessing the
    article.  Unfortunately, Xref is optional under NOV so many systems do
    not automatically provide it even though it is one of the recommended
    headers.

    To summarize, make sure that your server provides the Xref header AND if
    it supports NOV, make sure that the Xref header is part of the NOV
    database.

------------------------------

Subject: 4. What is a prefix argument?

    Many key-bindings accept prefix arguments.  A prefix argument is an
    integer that is generated prior to a key sequence and is used as a way
    of controlling the behavior the key sequence.  It is generated by
    pressing the ESC key and then pressing the keys that correspond to the
    integer.  For example, to generate a prefix argument of 314, simply
    press the 4 keys: ESC 3 1 4.

    Some functions use such arguments as repeat factors.  That is, the
    function bound to the key sequence that they modify will be repeated the
    number of times specified by the prefix argument.

    Some other functions may simply use it as a way of slightly modifying
    the behavior of the function.  For example, if a prefix argument is
    used as a modifier for the `followup' function, the original article's
    headers will be included in the followup message.  Without a prefix
    argument, the headers will not be included in followups.

------------------------------

Subject: 5. How do I re-read articles in a newsgroup that I have already read?

    When entering a newsgroup, simply use a `prefix argument'.  This means,
    press ESC and then a number followed by the key sequence that you use to
    enter the newsgroup.  For example, if you use the RETURN key, then press
    `ESC 1 RETURN'.

------------------------------

Subject: 6. Can I use the mouse with slrn?

     If slrn is run in an Xterm or on a win32 system, it can use the
     mouse.  To enable it, add the line 
     
        set mouse 1

     to your .slrnrc file.  This will cause slrn to enable mouse
     reporting on systems that support it. If run on Unix, the TERM
     environment variable is used to determine whether or not mouse
     support is available.

     To force the mouse to be used, startup slrn using the -m option, e.g.,
     `slrn -m'.

     The actions defined for the mouse are specified in the following table:

     Group Mode:

         Object                 Button         Action
         ------------------------------------------------
         Top Status line        any            specified by button label
         Group Name             any            select group
         Bottom Status line     middle         toggle display of unread groups
         Bottom Status line     left           page-down
         Bottom Status line     right          page-up         

     Article Mode:

         Object                 Button         Action
         ------------------------------------------------
         Top status line        any            specified by button label

         Header status line     left           header page down
                                right          header page up
                                middle         hide article window

         Article status line    left           next unread
                                right          previous unread
                                middle         toggle quotes

         Header item            any            select item

         Article window         left           article page down
                                right          article page up
                                middle         hide article window

------------------------------

Subject: 7. How do I use the mouse in an Xterm to cut/paste?

    The easiest way is to hold down the shift key when using the mouse for
    cut/paste operations.  The other way is to simply get an slrn prompt,
    e.g., search for something then after cut/paste abort the search.

------------------------------

Subject: 8. What is the easiest way to uudecode articles?

    Fortunately, the easiest way is also the most efficient.  Basically this
    involves using the `#' key to numerically tag articles that you want to
    decode and then the `:' key to start the decode process.  The only
    restriction is that multi-part uuencoded articles must be tagged in
    their proper order.  There is no need to uudecode one article at a time.
    Simply mark everything that you would like to decode then press `:'.

    Here is an actual example taken from alt.binaries.pictures.fractals:

    -    9:[Mike In Indy]    Kaboom! - kaboom.gif (0/1)
    - 3078:[Mike In Indy]    Kaboom! - kaboom.gif (1/1)
    -   23:[Gumbycat    ]    lucifer.gif  (0/7)
    -  433:[Gumbycat    ]    lucifer.gif -  for Halloween  (5/7)
    -  433:[Gumbycat    ]    lucifer.gif  -  for Halloween (3/7)
    -  433:[Gumbycat    ]    lucifer.gif  -  for Halloween (4/7)
    -  433:[Gumbycat    ]    lucifer.gif  -  for Halloween (6/7)
    -  244:[Gumbycat    ]    lucifer.gif  -  for Halloween (7/7)
    -  434:[Gumbycat    ]    lucifer.gif  - for Halloween (1/7)
    -  433:[Gumbycat    ]    lucifer.gif - for Halloween (2/7)
    -   16:[Paul Carlson]    My Halloween Fractal - devil.gif (0/1)
    - 4310:[Paul Carlson]    My Halloween Fractal - devil.gif (1/1)

    As you can see, 3 files have been posted: kaboom.gif, lucifer.gif, and
    devel.gif (At the time of this writing, it is Halloween weekend). Both
    kaboom.gif and devel.gif are single part files whereas lucifer.gif is a
    seven part series.  Since lucifer.gif is displayed out of order, care
    must be exercised when tagging it (slrn will sort threads by subject and
    in this case the poster used an inconsistent subject format--- usually,
    sorting will result in the correct ordering).  Assuming that we wish to
    decode these three gif images, the `#' key will be used to tag them.
    The result of using the `#' key is shown below:

    -    9:[Mike In Indy]    Kaboom! - kaboom.gif (0/1)
   1- 3078:[Mike In Indy]    Kaboom! - kaboom.gif (1/1)
    -   23:[Gumbycat    ]    lucifer.gif  (0/7)
   6-  433:[Gumbycat    ]    lucifer.gif -  for Halloween  (5/7)
   4-  433:[Gumbycat    ]    lucifer.gif  -  for Halloween (3/7)
   5-  433:[Gumbycat    ]    lucifer.gif  -  for Halloween (4/7)
   7-  433:[Gumbycat    ]    lucifer.gif  -  for Halloween (6/7)
   8-  244:[Gumbycat    ]    lucifer.gif  -  for Halloween (7/7)
   2-  434:[Gumbycat    ]    lucifer.gif  - for Halloween (1/7)
   3-  433:[Gumbycat    ]    lucifer.gif - for Halloween (2/7)
    -   16:[Paul Carlson]    My Halloween Fractal - devil.gif (0/1)
   9- 4310:[Paul Carlson]    My Halloween Fractal - devil.gif (1/1)

    Now 9 headers have been numerically tagged.  To decode these, simply
    press the `:' key.  slrn will prompt for a filename to save the articles
    to and after saving, it will prompt to go ahead and decode.  The decoded
    files will be placed in the directory specified by the
    `decode_directory' variable that one can set in the .slrnrc file.  The
    end result is that after tagging with the `#' key, one presses `:' and
    hits return twice.

    To un-tag articles, press `ESC #'.

------------------------------

Subject: 9. How do I cross-post an article?

    There are two ways:

       1. When slrn prompts for a newsgroup, simply specify a comma
          separated list of newsgroups.  DO NOT USE SPACES!

       2. Edit the Newsgroup header line when editing the message.  Again,
          the list of newsgroups must be comma separated with no whitespace.
          Also make sure that you do not wrap this line.

    Helpful hint:

       If you forget the name of a newsgroup while inside the editor,
       suspend the editor with Ctrl-Z and use more/less/most to view your
       .newsrc file.  If your editor is sophisticated enough, you can really
       simplify this process by using the `editor_command' keyword in your
       .slrnrc file.  For example, if you use jed as your editor, you can
       set your editor command to something like:

          editor_command "jed ~/.jnewsrc -2 %s -g %d"

       This says to load the file ~/.jnewsrc into the editor, split the
       window, then load the file that slrn wants to edit in one of the
       windows and then goto a specified line number.

------------------------------

Subject: 10. How do I re-read previously read articles of a thread?

     `ESC p' will attempt to find the parent as specified by the references
     header of the current article querying the server if necessary.  To
     find the children of the current article (articles that reference it),
     use `ESC Ctrl-P'.  Finally, to reconstruct the entire tree (all parents
     and all children), use `ESC 1 ESC p'.

------------------------------

Subject: 11. Why doesn't the `L' command work as advertised?

     Capital L lists all un-subscribed groups that slrn knows about.
     Slrn gets this information through one of three sources.  It
     tries the following in order and stops when one is successful:

	a.  From the server via the active file.  It only does this if the
	    line `set read_active 1' is in your .slrnrc file.  By default,
	    slrn does not read the active file.
	    
	b.  By querying the server using the XGTITLE nntp command.  This
	    requires your server to support this command and the line
	    `set use_xgtitle 1' must be in your .slrnrc file.
	    
        c.  From the groups listed in your newsrc file.  The `L' command
	    will only list unsubscribed groups that are present in this file.

     The last one (c) always succeeds with results that may be less than
     desirable.  If you have a fast network connection to your server,
     simply put
     
         set read_active 1

     in your .slrnrc file.  If your connection is slow via something like
     ppp and you do not want slrn to read the active file, then see whether
     or not your server supports XGTITLE command.  If it does, allow slrn to
     use it via

         set use_xgtitle 1
	 
     As a last resort, try to keep a full list of newsgroups in your newsrc
     file.

------------------------------

Subject: 13. How can I set my `From' line for my posts?

     Use the .slrnrc settings:
     
         hostname "YOUR.HOST.NAME"
	 set username "USERNAME"
	 set realname "YOUR REAL NAME"
	 
    This will cause slrn to use a From line of the form:
    
        From: USERNAME@YOUR.HOST.NAME (YOUR REAL NAME)

Re: slrn FAQ
#42932
Author: John Klassa
Date: Fri, 28 Aug 1998 00:00
10 lines
864 bytes
On 25 Aug 1998 10:41:21 GMT, davis@space.mit.edu <davis@space.mit.edu> wrote:
  > Archive-name: usenet/software/slrn-faq
  > Posting-Frequency: bi-weekly

John [Davis] *is* alive! :-)

-- 
John Klassa / Alcatel Telecom / Raleigh, NC, USA <><

Re: slrn FAQ
#42982
Author: John E. Davis
Date: Wed, 02 Sep 1998 00:00
11 lines
1103 bytes
On 28 Aug 1998 12:07:52 GMT, John Klassa <klassa@aur.alcatel.com>
wrote:
>John [Davis] *is* alive! :-)

   Yes and no.  Actually, the slrn FAQ is posted via a ``robot''.
Right now I am extremely busy with a work related project and I have
not had too much time for my hobby (free software).

--John

Re: slrn FAQ
#43097
Author: Sylvain Robitaille
Date: Mon, 07 Sep 1998 00:00
34 lines
2212 bytes
On 6 Sep 1998 09:33:08 GMT, David L. Vondrasek
<davidNOSPAM@tabletop.stumbleinn.dyn.ml.org> wrote:

> How about a detailed install sheet for the nice SLRNPULL
> program you have ? I've tried several times to install it
> and it will not run. gets all kinds of can't create directory
> errors. Would be a great Idea if I can get it running over
> my dial-up. 

Well there isn't really all that much detail required. I suspect that
you're having the problem you're having because the userid slrnpull is
running as doesn't have permission to write to the SLRNPULL_ROOT_DIR.
(Is your SLRNPULL_ROOT_DIR owned by 'root' and slrnpull trying to run
as an unprivileged user?)

Either adjust permissions accordingly, or run slrnpull with privileges.

With respect to the latter, I really recommend that you run slrnpull
with its own userid, (say 'news') with appropriate ownership and
permissions on the SLRNPULL_ROOT_DIR. You might want to have a look at
a patch I posted a while back (I'll repost if you like) which makes
that possible.

Hope that helps...

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------

Re: slrn FAQ
#43098
Author: Frank Hahn
Date: Mon, 07 Sep 1998 00:00
28 lines
1830 bytes
On 6 Sep 1998 09:33:08 GMT, David L. Vondrasek
 <davidNOSPAM@tabletop.stumbleinn.dyn.ml.org> wrote:

[Previous discussion snipped]

>How about a detailed install sheet for the nice SLRNPULL
>program you have ? I've tried several times to install it
>and it will not run. gets all kinds of can't create directory
>errors. Would be a great Idea if I can get it running over
>my dial-up. 
>
>BTW. Thanks for SLRN. I've tried them all, and keep coming
>back to it.
>
>David L. Vondrasek                         dlv@watertower.com
>
Your problem sounds like a permission problem.  I guess your options
are to either change the permissions on the directories slrnpull is
trying to create or run it as root user so the directories get created.

I have set up slrnpull on both Solaris and Linux.  I found it easier
to get going than leafnode.  I also like the ability to kill a lot of
messages that I have no interest in reading.

-- 
Frank Hahn

Re: slrn FAQ
#43114
Author: John E. Davis
Date: Tue, 08 Sep 1998 00:00
11 lines
1320 bytes
On 7 Sep 1998 16:08:30 GMT, David L. Vondrasek <davidNOSPAM@tabletop.stumbleinn.dyn.ml.org>
wrote:
>Just for test I chmod'ed the directories to 777 and even ran as root as you
>can see.And all directories are there.

What does `ls -lR /var/spool/news' reveal?

--John


Re: slrn FAQ
#43119
Author: Sylvain Robitaille
Date: Tue, 08 Sep 1998 00:00
187 lines
8213 bytes
On 7 Sep 1998 11:05:11 GMT, I wrote:

>> Either adjust permissions accordingly, or run slrnpull with privileges.

On 7 Sep 1998 16:08:30 GMT, David L. Vondrasek
<davidNOSPAM@tabletop.stumbleinn.dyn.ml.org> wrote:

> That may be the problem. But I have tried running it as root also 
> and get the same errors. See below:

> root@tabletop:/var/spool/news/slrnpool : slrnpull -h news.airmail.net

Hrmmm... Check the compiled-in directory. I run slrnpull from a modified
copy of the slrnpull.sh script which comes with the slrn distribution.
In the script, I have specifically indicated which directory to use as
the slrnpull "root" directory:

    #!/bin/sh
    
    # This script is run from cron early every morning. It performs the
    # following:
    #
    #     1.  Runs slrnpull in expire mode to expire old articles
    #     2.  Runs slrnpull to grab articles from the server
    
    # Configuration variables.
    dir=/local/var/slrnpull
    server=newshost.isp.domain
    slrnpull=/local/bin/slrnpull
    
    #----------------------------------------------------------------
    umask 022
    
    # Before getting new articles, perform expiration.
    $slrnpull -d $dir --expire
    
    # ok, now let's get new articles.
    $slrnpull -d $dir -h $server

> 09/07/1998 11:05:22 ***Unable to open /var/spool/news/slrnpull/log for
>                     logging.
> 09/07/1998 11:05:22 slrnpull started.
> 09/07/1998 11:05:22 ***Unable to create directory
>                     /var/spool/news/slrnpull/news. (errno = 2)
> 09/07/1998 11:05:22 A total of 0 bytes received, 0 bytes sent in 0 seconds.

Ahhh... now wait a minute. "errno = 2" should help...

In "/usr/include/asm/errno.h", I see:

    #define ENOENT     2  /* No such file or directory */

Are you *sure* /var/spool/news/slrnpull exists and is a directory?
(Forgive me if you've checked this. It's just that the error message
*does* point to that.)

> Just for test I chmod'ed the directories to 777 and even ran as root
> as you can see.And all directories are there.

'ls -ld' of the directories in question might be useful here. (Though
running as root, I can't think of what the trouble might be. :-( )

>> With respect to the latter, I really recommend that you run slrnpull
>> with its own userid, (say 'news') with appropriate ownership and
>> permissions on the SLRNPULL_ROOT_DIR. You might want to have a look at
>> a patch I posted a while back (I'll repost if you like) which makes
>> that possible.
>
> I'd be more then willing to try the patch you have.

Well it won't help with the problem you're having, I'm afraid, but it
*does* permit you to run slrnpull with its own privileges, without
needing it to run as root.

I'm afraid I don't have a copy of the original post handy, but here's
the patch (Apply from the directory where the slrn source unpacks
into):

    *** src/slrnpull.c.original	Mon Apr 20 16:22:12 1998
    --- src/slrnpull.c	Tue Jul  7 22:30:28 1998
    ***************
    *** 1486,1493 ****
      	return -1;
           }
      	
    !    if (-1 == chmod (dir, 0777 | 01000))
    !      log_error ("chmod 01777 failed on %s.", dir);
         
         return 0;
      }
    --- 1486,1503 ----
      	return -1;
           }
      	
    !    /*
    !     * 1998/07/07 Sylvain Robitaille (syl@alcor.concordia.ca)
    !     *            Make this directory setgid so all files created in it
    !     *            will be owned by the group owner of the directory,
    !     *            (presumably group 'news'). This way, slrnpull can run
    !     *            as a regular user (news.news) and be given proper
    !     *            permissions to manipulate files in the out.going
    !     *            directory. (NOTE: This has only been tested on
    !     *            Linux-2.0.xx)
    !     */
    !    if (-1 == chmod (dir, 0777 | 03000))
    !      log_error ("chmod 03777 failed on %s.", dir);
         
         return 0;
      }

    *** src/server.c.original	Mon Apr 20 16:22:10 1998
    --- src/server.c	Tue Jul  7 22:55:02 1998
    ***************
    *** 532,537 ****
    --- 532,550 ----
         if (Pull_Fp == NULL)
           return ERR_FAULT;
         
    +    /*
    +     * 1998/07/07 Sylvain Robitaille (syl@alcor.concordia.ca)
    +     *            We have our out.going directory setgid to news, and we
    +     *            want to be sure the file is readable and writable to
    +     *            group news. This way, the news user will have
    +     *            appropriate permissions for manipulating this file.
    +     *            (NOTE: This has only been tested on Linux-2.0.xx)
    +     */
    +    if (-1 == chmod (Pull_Post_Filename, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP))
    +      {
    +        return ERR_FAULT;
    +      }
    + 
         if (-1 == slrn_fclose (Pull_Fp))
           {
      	Pull_Fp = NULL;

Now make sure that all the directories and log files slrnpull will need
to write to are writeable to user 'news', (or whatever user you choose
to run slrnpull as). Also make sure that any files already in the
'out.going' directory are writeable to group 'news' (or whatever group
your news user will belong to).

Last, make sure that the out.going directory is mode 1777, so anyone can
write to it, but they can only delete files they own.

I have the following setup on my system:

    : elvira[syl] ~; ls -ld /local/var/slrnpull
    drwxr-xr-x   6 news  news      1024 Sep  7 06:33 /local/var/slrnpull/
    : elvira[syl] ~; ls -l /local/var/slrnpull
    total 50
    drwxr-xr-x   2 news  news      1024 Sep  7 22:15 data/
    -rw-r--r--   1 news  news     18780 Sep  7 22:15 log
    drwxr-xr-x   6 news  news      1024 Jul  5 21:57 news/
    drwxr-xr-x   2 news  news      1024 Aug  7 20:29 old/
    drwxrwsrwt   3 news  news      1024 Sep  7 22:43 out.going/
    -rw-rw-r--   1 news  news     21560 Sep  6 12:25 score
    -rw-r--r--   1 root  system    2521 Aug  7 20:29 slrnpull.conf

(The 'old' directory is where I keep backup copies of the conf file
when editting -- the 'news' directory is the news spool, so I won't
bother giving you a listing of that.)

    : elvira[syl] ~; ls -l /local/var/slrnpull/out.going/
    total 5
    -rw-rw----   1 syl   news      3904 Sep  7 22:43 X905222621-3114-1.syl
    drwxr-xr-x   2 news  news      1024 Jul  7 22:08 rejects/

Here you see a post waiting to be sent. A user in group 'news' (such as
user 'news') will be able to delete the file because of the group
permission. Also the 'news' user needs to be able to read the file to
even be able to post it. Again the group permission takes care of that.

    : elvira[syl] ~; ls -l /local/var/slrnpull/data
    total 1
    -rw-r--r--   1 news  news       521 Sep  7 22:15 active

I hope that helps...

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------

Re: slrn FAQ
#43131
Author: Frank Hahn
Date: Tue, 08 Sep 1998 00:00
88 lines
4563 bytes
In article <529FBA9D40C7536F.C9CBB45E7283CDA5.3B28530692C5E43B@library-proxy.airnews.net>,
	davidNOSPAM@tabletop.stumbleinn.dyn.ml.org (David L. Vondrasek) writes:
> On 7 Sep 1998 11:05:11 GMT, Sylvain Robitaille wrote:
>>On 6 Sep 1998 09:33:08 GMT, David L. Vondrasek
>><davidNOSPAM@tabletop.stumbleinn.dyn.ml.org> wrote:
>>
>>> How about a detailed install sheet for the nice SLRNPULL
>>> program you have ? I've tried several times to install it
>>> and it will not run. gets all kinds of can't create directory
>>> errors. Would be a great Idea if I can get it running over
>>> my dial-up. 
>>
>>Well there isn't really all that much detail required. I suspect that
>>you're having the problem you're having because the userid slrnpull is
>>running as doesn't have permission to write to the SLRNPULL_ROOT_DIR.
>>(Is your SLRNPULL_ROOT_DIR owned by 'root' and slrnpull trying to run
>>as an unprivileged user?)
>>
>>Either adjust permissions accordingly, or run slrnpull with privileges.
>>
>>With respect to the latter, I really recommend that you run slrnpull
>>with its own userid, (say 'news') with appropriate ownership and
>>permissions on the SLRNPULL_ROOT_DIR. You might want to have a look at
>>a patch I posted a while back (I'll repost if you like) which makes
>>that possible.
>>
>>Hope that helps...
> 
> That may be the problem. But I have tried running it as root also 
> and get the same errors. See below:
> located in
> 
> /usr/local/bin/slrnpull
> 
> Errors on running:
> 
> root@tabletop:/var/spool/news/slrnpool : slrnpull -h news.airmail.net
> 09/07/1998 11:05:22 ***Unable to open /var/spool/news/slrnpull/log for
> logging.
> 09/07/1998 11:05:22 slrnpull started.
> 09/07/1998 11:05:22 ***Unable to create directory
> /var/spool/news/slrnpull/news. (errno = 2)
> 09/07/1998 11:05:22 A total of 0 bytes received, 0 bytes sent in 0 seconds.
> root@tabletop:/var/spool/news/slrnpool : 
> 
One thing I just noticed is the line above has "slrnpool".  Is this just
a typing error?


> Just for test I chmod'ed the directories to 777 and even ran as root as you
> can see.And all directories are there.
> 
> I'd be more then willing to try the patch you have.
> 
> Thanks
> 
For informational purposes, here are the permissions on the directories
to my spool directory.  Don't laugh if they are not correct.  This is on
a Linux box at home and I am the only using it.

Permissions on /var:
drwxr-xr-x  14 root     root         1024 Apr 21 13:04 var

Permissions on /var/spool:
drwxrwxr-x  18 dfh      users        1024 Jun 29 21:34 spool

Permissions on /var/spool/slrnpull:
drwxrwxr-x   5 dfh      users        1024 Sep  6 00:00 slrnpull


Permissions on /var/spool/slrnpulli/miscellaneous files:
drwxrwxr-x   5 dfh      users        1024 Sep  8 06:47 .
drwxrwxr-x  18 dfh      users        1024 Sep  8 06:46 ..
drwxrwxr-x   2 dfh      users        1024 Sep  8 05:17 data
-rw-rw-rw-   1 dfh      users       22014 Sep  8 05:17 log
-rw-rw-rw-   1 dfh      users        6832 Sep  5 05:21 log.1.gz
-rw-rw-rw-   1 dfh      users        6491 Aug 29 18:16 log.2.gz
-rw-rw-rw-   1 dfh      users        6831 Aug 22 21:48 log.3.gz
drwxrwxr-x   5 dfh      users        1024 Aug  9 16:07 news
drwxrwxr-x   3 dfh      users        1024 Sep  7 17:21 out.going
-rw-rw-r--   1 dfh      users        2885 Aug 24 19:50 score
-rw-rw-r--   1 dfh      users        2071 Aug 17 17:59 slrnpull.conf

-- 
Frank Hahn


Re: slrn FAQ
#43140
Author: Sylvain Robitaille
Date: Wed, 09 Sep 1998 00:00
110 lines
5690 bytes
On 8 Sep 1998 21:43:28 GMT, Frank Hahn <fhahn@zdnetmail.com> wrote:

> For informational purposes, here are the permissions on the directories
> to my spool directory.  Don't laugh if they are not correct.  This is on
> a Linux box at home and I am the only using it.

Considering it's a single-user system, I wouldn't really worry about it,
but you really should make a habit of setting permissions more
restrictively on your system, for a variety of reasons, (I'll only list
those I can come up with quickly):

- It's often likely that you may at some point decide to allow a friend
  or relative access to your system. In such a case, you will likely
  want to give them their own account. All of a sudden, you have to
  worry about these things...

- Sometimes it isn't a human user that's the problem, but software
  running as an otherwise unprivileged user. Anything that's writable to
  the unprivileged user could get corrupted if the software decides to
  misbehave, (think trojan horse, for example).

- You yourself can make mistakes. If you limit the privilege you
  normally have, you can limit the amount of damage such a mistake could
  cause.
 
- Habit. If you make a habit of setting wide open permissions on stuff,
  you're more likely to do the same at work, with files and directories
  that might contain sensitive data. On the other hand, if you get used
  to a system of "least privilege", you'll take that to work with you,
  and not leave anything at risk there.

That said, let's say for the sake of discussion, that you give me an
account on your machine. You don't know it, but I happen to be bored and
just looking to cause you a bit of a headache, "just for laughs". Here's
what I might do:

> Permissions on /var/spool:
> drwxrwxr-x  18 dfh      users        1024 Jun 29 21:34 spool

Bye-bye /var/spool/mail!  If you happen to have your system send you any
sort of automatic reports, (such as COPS runs or others), you could
suddenly find that those are no longer being sent.

> Permissions on /var/spool/slrnpull:
> drwxrwxr-x   5 dfh      users        1024 Sep  6 00:00 slrnpull

Ok, so now anything in that directory is fair game...

> Permissions on /var/spool/slrnpulli/miscellaneous files:
> drwxrwxr-x   2 dfh      users        1024 Sep  8 05:17 data

Well, I wouldn't likely have too much fun with your active file, really,
but let's say you gave me a quota on /home:

% mkdir "/var/spool/data/. "
% chmod 700 "/var/spool/data/. "
% mv some_big_file "/var/spool/data/. "

Usage growth on /var is normal, so you wouldn't likely suspect any such
thing. Also, you're not likely to look in /var/spool/data all that
frequently, either.

> -rw-rw-rw-   1 dfh      users       22014 Sep  8 05:17 log
> -rw-rw-rw-   1 dfh      users        6832 Sep  5 05:21 log.1.gz
> -rw-rw-rw-   1 dfh      users        6491 Aug 29 18:16 log.2.gz
> -rw-rw-rw-   1 dfh      users        6831 Aug 22 21:48 log.3.gz

Hrmmm... :-(  Your log files should really only be writable by the user
that needs to write to them. There probably isn't *much* I could do
here as a malicious user, but loss of data could mean extra time spent
by you troubleshooting problems that don't exist, or working harder to
find why problems that *do* exist aren't appearing in the logs.

> drwxrwxr-x   5 dfh      users        1024 Aug  9 16:07 news

Think "forged posts" (that don't really exist).

> drwxrwxr-x   3 dfh      users        1024 Sep  7 17:21 out.going

Think "posts mysteriously disappearing".

> -rw-rw-r--   1 dfh      users        2885 Aug 24 19:50 score

Spammers suddenly get their messages into your news spool.

> -rw-rw-r--   1 dfh      users        2071 Aug 17 17:59 slrnpull.conf

You suddenly start carrying a few of the alt.binaries groups. (lookout
disk usage!)

Again, as you said, you're the only person using the system. However, I
stress that this may the case *now*, but could very well change at some
point. If I was lucky enough to be given access to your system, I might
find cause to look around and see what *else* is configured with such
open permissions...

It's your system, but I hope I've given you reasons to think carefully
about how you set it up. Now, I don't really have it in me to be
malicious that way, but as they say, "to catch a mouse, you have to
*think* like a mouse."

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------

Re: slrn FAQ
#43170
Author: Frank Hahn
Date: Thu, 10 Sep 1998 00:00
33 lines
2375 bytes
On 9 Sep 1998 02:57:59 GMT, Sylvain Robitaille <syl@alcor.concordia.ca> wrote:

>On 8 Sep 1998 21:43:28 GMT, Frank Hahn <fhahn@zdnetmail.com> wrote:
>
>> For informational purposes, here are the permissions on the directories
>> to my spool directory.  Don't laugh if they are not correct.  This is on
>> a Linux box at home and I am the only using it.
>
>Considering it's a single-user system, I wouldn't really worry about it,
>but you really should make a habit of setting permissions more
>restrictively on your system, for a variety of reasons, (I'll only list
>those I can come up with quickly):
>

[Many helpful suggestions snipped]

I do appreciate the reply.  I went back and tried to change some of the
permissions and of course some things did not want to work. :(  I should
mention that I have two machines networked together.  One is a Linux
box and the other is a Windows 95 box.  I have Samba running on the Linux
machine so that I can mount the Slrnpull spool directories from the Windows
95 machine.

I then run Slrn on the Windows 95 machine.  I'm sure part of the problem
is that I don't have Samba set up correctly, but I am able to send my
posts to it and then have Slrnpull send them out.

Anyway, did we get the original problem solved?  ;)

-- 
Frank Hahn

Re: slrn FAQ
#43182
Author: Sylvain Robitaille
Date: Fri, 11 Sep 1998 00:00
50 lines
3346 bytes
On 10 Sep 1998 02:34:27 GMT, Frank Hahn <fhahn@zdnetmail.com> wrote:

> I do appreciate the reply.  I went back and tried to change some of the
> permissions and of course some things did not want to work. :(

This isn't surprising, of course. Once you have a setup with "loose"
permissions, it's very difficult to tighten them up without breaking
some of the software installations. :-(

Just to give this dead horse another poke, though, I'll still recommend
that you work at it. Take it a step at a time. Tighten up the
permissions of one set of files and directories, such that only
appropriate users are able to write when necessary. Then figure out what
breaks, and try and fix it without giving any unnecessary permissions.

> I should mention that I have two machines networked together. One is a
> Linux box and the other is a Windows 95 box.  I have Samba running on
> the Linux machine so that I can mount the Slrnpull spool directories
> from the Windows 95 machine.

This makes no difference, as far as I'm concerned, except that I now
think it's even more likely that at some point you'll find yourself
wanting to give someone else access to the Linux system.

> I then run Slrn on the Windows 95 machine. I'm sure part of the
> problem is that I don't have Samba set up correctly, but I am able to
> send my posts to it and then have Slrnpull send them out.

That's precisely what I'm suggesting you keep working at, then. Pick a
user/group for Samba to run as, and give write permission on files and
directories where you'll need, but without opening things up to other
"users" on your system. I don't use Samba, so I'm not really equipped to
make further suggestions about it, though.

> Anyway, did we get the original problem solved?  ;)

Yes. The original poster found he'd set the name of his
SLRNPULL_ROOT_DIR incorrectly. Once he fixed that, he was able to get
slrnpull to run. I believe we have another happy slrnpull user on our
hands! :-)

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Systems Manager                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------

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