Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site dayton.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!stolaf!umn-cs!dicomed!dayton!sjm From: sjm@dayton.UUCP (Steven J. McDowall) Newsgroups: net.unix-wizards Subject: SYS V unlink() call Message-ID: <683@dayton.UUCP> Date: Wed, 12-Feb-86 14:44:41 EST Article-I.D.: dayton.683 Posted: Wed Feb 12 14:44:41 1986 Date-Received: Sat, 15-Feb-86 03:30:51 EST Reply-To: sjm@dayton.UUCP (Steven J. McDowall) Organization: Dayton Hudson Dept. Stores Mpls, MN Lines: 30 Keywords: SYSV unlink() Our system (a CRDS Universe/32 w/ Unos 6.1) is based on Unix V, or to be more precise, is SYS V compatible. My question is this: In SYSV do you have* to be SU to unlink directories? I wrote a program that unlinks whatever file name is passed to it to confirm my ideas, and sure enough, it would not remove (unlink) a file that is a directory even if I owned it, and it had write permission. The error I get back is EPERM..Looking it up in the good olde System V Interface Definition Book (Spring 1985 - Issue 1) on page 143: [EPERM] The named file is a directory and the effective user ID of the process is not super-user. Does that mean that to delete *any* directory the program must be set uid'ed to root? I can't believe that this is what is really meant here, and it must be some sort of typo. Could anyone from Bell please clarify this? Thanks! -- Steven J. McDowall Dayton-Hudson Dept. Store. Co. UUCP: ihnp4!rosevax!dayton!sjm 700 on the Mall ATT: 1 612 375 2816 Mpls, Mn. 55408