Re: Unable to post
Peter Heckert <[email protected]>
| Newsgroups | gmane.network.sn |
|---|---|
| Message-ID | <[email protected]> |
Am Samstag 09 Dezember 2000 00:45 schrieben Sie: > Peter Heckert <[email protected]> wrote: > > Am Freitag 08 Dezember 2000 17:04 schrieben Sie: > > > On Fri, 08 Dec 2000, you wrote: > > > > Tom Schuyten <[email protected]> wrote: > > > > > When I want to post a message I get "Unable to post". > > > > > > > > That error comes from the POST script. What does your log file(s) > > > > say? > > > > > > I found the log in the sys log viewer, it says > > > > > > /applications/sn/bin/POST: cat: command not found > > > snsend:can't read aricle: No such file or directory > > > snntpd:POST:Unable to post > > > snntpd:do_post:POST died with 9 > > > > I had the same problem. > > Near to the end of the POST script is a single line containing "cat". > > I changed this to /bin/cat. This fixed it. > > I guessed it would... The question then is why "/bin" is not in your > $PATH... Could you insert "echo $PATH" at the start of the POST script and > tell me what you get in your logs then? (That goes for Peter, too.) > Path is set to /usr/local/sbin . This is where I installed sn. Maybe, inetd or tcpd deletes the PATH, for security reasons ? > BTW, I guess you both use inetd, and not tcpserver? > Yes I use inetd. I intend to use xinetd in future. I dont know what tcpserver is, so I dont use it :-). > > I also had another problem. Seemingly you dont have this prob because > > your sn already has accepted the posting. > > My sn said "Hi, you cant post!". Seemingly setting env-vars (POSTING_OK") > > within hosts.allow doesnt work. (I use Mandrake 7.2.) > > I changed the source of sn to fix this. > > Well, setting env vars in /etc/hosts.allow should work just fine. (And does > work for me.) I noticed, however, that Harold put this comment in > INSTALL.run: > > NOTE: the "setenv" capability is said to be unworkable in the tcpd that > ships with certain versions of the Red Hat Linux distribution. > I have used www.google.com/linux to learn more about this. Seemingly there are some problems. First, I believe, the syntax should be "setenv POSTING_OK 1". "setenv=POSTING_OK" is not the correct syntax. Also Wietse Venema,the author of tcpd says,that at least one argument must be given. Also there are problems with redhats tcpd and setenv mentioned. I believe,that "setenv" doesnt work for Mandrakes tcpd. When I goto xinetd then this probs hopefully will go away. Just let me say this: I am using sn with some workaround successfully. I have tested leafnode (slow download),inn (monster size),newscache (trashes newsspool,when the connection goes down) and slrnpull (unflexible) and I have found that sn is the best for me,because of flexibility and download speed. Thanks, and greetings, Peter