From: s_titz@ira.uka.de (Olaf Titz) Subject: Re: Trouble with SLS relaynews Date: 7 Apr 1993 14:17:29 GMT
In article <1993Apr4.173812.50578@ccvax.ucd.ie> h235_003@ccvax.ucd.ie (Ronan Mullally) writes:
> relaynews: warning: renouncing setuid due to nonstandard `NEWSMASTER' in
> environment
NEWSMASTER is defined in .../news/config. Do *not* change this file if
you're running a binary distribution, as some of these parameters are
compiled into the binary too. NEWSMASTER tells the news programs where
to mail error messages (look into .../news/bin/maint/newswatch for an
example). If the predefined value doesn't match the UID of your news
programs (e.g. the programs have UID 'news' and NEWSMASTER is
'usenet') you have to define an alias for the mailed messages. Make
sure you have no NEWSMASTER environment variable defined elsewhere,
too.
The news binaries have to run setuid to the news account.
> relaynews: can't create lock temporary `/usr/local/lib/news/LOCK...'
> (Permission denied)
This happens when either
- relaynews isn't setuid,
- there is no news UID at all,
- /usr/local/lib/news doesn't belong to the news UID, or
- NEWSMASTER is wrong.
> I have relaynews setuid news, running it directly results in:
which is right...
> relaynews: set[ug]id failed (Operation not permitted)
which is right too, since relaynews should only be run over the shell
scripts (e.g. inews) which take care of initialization things like
environment vars.
Btw.: take care of 'inews'. At least the distribution I have comes
with two of them (in .../news and .../news/bin/inject) which are
identical but if you change one of them (e.g. to generate correct
Lines: headers, you have to take out some comments for that) make sure
that you either change both, or replace one by a link.
Olaf
--
olaf titz o olaf@bigred.ka.sub.org voice@49-721-60439
comp.sc.student _>\ _ s_titz@ira.uka.de praetorius@irc
karlsruhe germany (_)<(_) uknf@dkauni2.bitnet happy linux user
what good is a photograph of you? everytime i look at it it makes me feel blue