Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!ho95e!wcs From: wcs@ho95e.UUCP Newsgroups: news.admin Subject: Re: News Directory Problems Message-ID: <1851@ho95e.ATT.COM> Date: Sun, 8-Nov-87 15:08:21 EST Article-I.D.: ho95e.1851 Posted: Sun Nov 8 15:08:21 1987 Date-Received: Tue, 10-Nov-87 02:47:49 EST References: <474@neptune.AMD.COM> <2120@lsuc.UUCP> <44176@beno.seismo.CSS.GOV> <1877@ncr-sd.SanDiego.NCR.COM> Reply-To: wcs@ho95e.UUCP (46133-Bill.Stewart,2G218,x0705,) Organization: AT&T Bell Labs 46133, Holmdel, NJ Lines: 20 In article <1877@ncr-sd.SanDiego.NCR.COM> greg@ncr-sd.SanDiego.NCR.COM (Greg Noel) writes: :In article <44176@beno.seismo.CSS.GOV> rick@seismo.CSS.GOV (Rick Adams) writes: :>For a long time, inews has checked to see if it was running as root and :>if it was, assumed the worst and did setuid() calls to give it the :>intended permissions. :>This "shouldn't" be the problem. :directories being created owned by root) and it was eventually traced to uucp :... uucp being invoked by root when running as an ethernet server. :... We found that, for some reason, a set-UID program invoked by root doesn't :operate the same way as a non-set-UID program; something gets confused. :program as a non-set-UID program; it did a stat() of uucico to find out the :UID/GID to set itself to. System V has several "features" in its setuid-handling. One obvious workaround is for the news code to chown directories to news when it creates them. Obviously this requires a #define SYSV, unless 4.3BSD now lets mere mortals use chown? -- # Thanks; # Bill Stewart, AT&T Bell Labs 2G218, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs