Article View: comp.os.linux.networking
Article #585Re: News posting problem
From: Paul Thomas
Date: Sun, 23 Jul 1995 00:00
Date: Sun, 23 Jul 1995 00:00
42 lines
2403 bytes
2403 bytes
In article <1995Jul22.141819.9170@dcs.warwick.ac.uk> J.C.Doran@dcs.warwick.ac.uk (Farthing W. Fox) writes: > Somewhere along the line in my re-setting up of my linux box, I guess I am > missing something, for I cannot seem to manage to post news at all. > I just get the error: > newsspool: renouncing setuid due to nonstandard `NEWSPATH' in environment > newsspool: unable to create temporary `/var/spool/news/in.coming/nspool.a01020' (Permission denied) > /usr/lib/newsbin/inject/injnews: article in /home/fox/dead.article > /usr/bin/inews failed Some of the executables that make up CNews check that the NEWSPATH that they were built with match the NEWSPATH in the file /var/lib/news/bin/config. This is a security feature. Unfortunately in the Slackware 2.2.0 distribution the NEWSPATH that the executable /usr/lib/newsbin/input/newsspool was built with is: /bin:/usr/bin:/usr/sbin:/sbin whereas the NEWSPATH in the config file is: /bin:/usr/bin:/sbin:/usr/sbin This causes the newsspool program to output the error that you are seeing as it sulks that the path is not correct and renounces its setuid priviledge. You can't just edit the path in the config file because the executable /usr/lib/newsbin/relay/relaynews has been built with the correct path so modifying the config file will just cause a problem here instead. What you really need to do is rebuild CNews from scratch. Alteratively you could do what I did - I simply patched the newsspool executable with a hex editor to contain the correct path. This is dead easy as the paths are the same size and you only need to change a few bytes. This hack has been working fine for me for a couple of weeks with no problems at all. -- Paul Thomas
Technical Details
Message-ID:
<PAUL.95Jul23162606@ashbury.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<1995Jul22.141819.9170@dcs.warwick.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108f6a,1ffef29fae501d0 X-Google-Attributes: gid108f6a,public X-Google-Thread: 10669a,1ffef29fae501d0 X-Google-Attributes: gid10669a,public From: Paul Thomas <paul@ashbury.demon.co.uk> Subject: Re: News posting problem Date: 1995/07/23 Message-ID: <PAUL.95Jul23162606@ashbury.demon.co.uk> X-Deja-AN: 106773020 x-nntp-posting-host: ashbury.demon.co.uk sender: Paul Thomas <paul@ashbury.demon.co.uk> references: <1995Jul22.141819.9170@dcs.warwick.ac.uk> organization: None x-attributions-by: Supercite 3.1 newsgroups: comp.os.linux.networking,demon.ip.support.unix