Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!xyzoom!rob From: rob@xyzoom.info.com (Rob Lingelbach) Newsgroups: news.software.b Subject: Re: cnews spooling trouble Message-ID: <1991May15.071141.1990@xyzoom.info.com> Date: 15 May 91 07:11:41 GMT References: <1991May12.234639.18084@xyzoom.info.com> <1991May13.161913.1812@zoo.toronto.edu> <1494@ecicrl.ocunix.on.ca> Sender: rob@xyzoom.info.com (Rob Lingelbach) Reply-To: rob@xyzoom.info.com (Rob Lingelbach) Organization: Altruistic Intentions, Hollywood CA Lines: 55 In article <1494@ecicrl.ocunix.on.ca> clewis@ferret.ocunix.on.ca (Chris Lewis) writes: >In article <1991May13.161913.1812@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes: >>In article <1991May12.234639.18084@xyzoom.info.com> rob@xyzoom.info.com (Rob Lingelbach) writes: >>>> newsrun must be invoked by a uid which has write permission to >>>> /usr/lib/news . > >>Normally, however, this should be okay in this situation, because newsspool >>(the guts of rnews) is running setuid-news and thus its children can write >>on /usr/lib/news. Further investigation is called for on why this did not >>work. > >Rob answered "yes" to the "can your machine do setuid(geteuid())". ISC >386/IX cannot. He has to set it to "no" and rebuild. I made the change and did the rebuild, and the same thing is happening (newsrun complains that it can't create /usr/lib/news/L.). I made /usr/lib/news mode 777 and the lock file was written allowing newsrun to work; as soon as I changed $NEWSCTL back to 775 it didn't work. I am testing (and failing) by feeding an article to rnews while logged in as a regular user. If I feed an article to rnews while logged in as news, it works. My newsfeed is via uucp; is rnews invoked with the caller's permissions, and if the caller is allowed the command (/usr/bin/rnews) in /usr/lib/uucp/Permissions, shouldn't it work? Here are the permissions of the appropriate files: in $NEWSBIN/input: 8 -rwsrwsr-x 1 news news 3247 May 12 23:45 newsrun* 102 -rwsrwsr-x 1 news news 50258 May 12 23:45 newsspool* 4 -rwxrwxr-x 1 news news 1201 May 12 23:45 rnews* and /usr/bin/rnews: 4 -rwsr-sr-x 1 news news 1201 May 12 23:45 /usr/bin/rnews* in $NEWSBIN/relay: 262 -rwsrwsr-x 1 news news 132289 May 12 23:45 relaynews* and here is "ls -lad /usr/lib/news" ($NEWSCTL) 4 drwxrwxr-x 7 news news 1392 May 15 00:04 /usr/lib/news/ Right now I have newsrun called from cron, works fine, but it would be nice to have it run immediately. --Rob -- Rob Lingelbach KB6CUN rob@xyzoom.info.com -or- ...!uunet!xyzoom!rob 2641 Rinconia Dr L.A. CA 90068 voice: 213 464-6266 ascetic by nature ---'Tis pride that brings the country down---(Shakespeare)