Re: Unable to post
Patrik Rådman <[email protected]>
| Newsgroups | gmane.network.sn |
|---|---|
| Message-ID | <[email protected]> |
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: > > > > I just installed sn without problems on redhat 6.2 > > > > > > > > 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.) BTW, I guess you both use inetd, and not tcpserver? > 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 don't know what versions that would be... One way to avoid this problem is probably to create a wrapper script around snntpd, run that from inetd, and set the variables there. (INSTALL.run used to tell you to do this up to 0.2.5, so that's the method I'm still using... :) ) -- Patrik Rådman · patrik at iki dot fi · http://www.iki.fi/patrik/ "It's the year 2000 - but where are the flying cars?"