Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!petrus!scherzo!allegra!mit-eddie!think!harvard!seismo!lll-crg!well!micropro!kepler!mojo From: mojo@kepler.UUCP (Morris Jones) Newsgroups: net.bugs.uucp,net.news.adm Subject: mkdir() under suid Message-ID: <495@kepler.UUCP> Date: Fri, 7-Feb-86 04:59:33 EST Article-I.D.: kepler.495 Posted: Fri Feb 7 04:59:33 1986 Date-Received: Sun, 9-Feb-86 07:51:03 EST Organization: MicroPro Int'l Corp., San Rafael, CA Lines: 28 Xref: watmath net.bugs.uucp:687 net.news.adm:506 Summary: Did you solve it? This is a known problem that was discussed in the 2.10.3 documentation when I was installing net news. I've now encountered the problem under honey danber uucp. Problem: Directories created by programs running under a user id different from the real user id (suid bit set) are owned by the real user and not the effective user. When honey danber uucico creates a machine directory, its ownership may be the person sending mail to that machine, and uux, running as user "uucp", will not be able to create command and data files. For the time being, I've commented out the portion of the cleanup script that erases empty spooling directories. If the directories don't have to be created, I won't encounter the problem. ("Hey Doc, it hurts when I do this: #*$%&#*%&!"). For the sake of news, I built a script that finds directories that aren't owned by the news user and fixes them. But the news documentation hints at another solution -- building your own version of mkdir(). Did you do this? Will you share it with me? -- Mojo ... Morris Jones, MicroPro Product Development {lll-crg,ptsfa,dual,well,pyramid}!micropro!kepler!mojo