Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!wiley!trwarcadia!simpson From: trwarcadia!simpson@usc.edu (Scott Simpson) Newsgroups: news.software.nntp Subject: Modifying rrn/NNTP to Fake Your File Server as the Posting Machine Message-ID: <5042@wiley.UUCP> Date: 14 Jun 89 00:48:51 GMT Sender: news@wiley.UUCP Reply-To: trwarcadia!simpson@usc.edu (Scott Simpson) Organization: TRW Arcadia Project, Redondo Beach, CA Lines: 129 We are a project using a Sun file server and a bunch of Sun clients and all of our machines NNTP to read news from a separate machine called wiley. We are not an ARPAnet site. We don't store news at all. Our configuration looks like ________ minotaur / wiley - - - - - - - - - - - trwarcadia--------- bonodea (the clients) \________ hermes We also set up aliases in /usr/lib/aliases to forward all our mail to the appropriate client. I have made a few changes to NNTP and rrn to fake posted addresses so they always look like they were posted from the file server. This means that if someone replies to your message, it will always get to you even if you switch workstations, provided that you update the alias file. Also, some of our client names clash with other names in the UUCP map database, so we don't register them. We only register the server. If an outgoing article has the client name in it, a user cannot use "uuhosts" to find a path to us. This solves this problem also. Here is how I did it: 1) To get posted articles to work (not followups to articles), I had to modify "Pnews.header" in the rrn source directory. Change the line fullname=`$sed < /etc/passwd -e "/^$logname:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:\[ ^,:;]*\).*"'$'"/\1/" -e "q" -e "}" -e "d"` to fullname=`ypcat passwd | $sed -e "/^$logname:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:\[ ^,:;]*\).*"'$'"/\1/" -e "q" -e "}" -e "d"` so it uses the yellow pages. If not, your name won't show up in comments in the posted line because most people are in the yellow pages database but not a client's local password file. Next, change the article header lines in the script so it generates a correct return address for your site. I changed ours to $cat > $tmpart <