Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: net.unix-wizards Subject: Re: SYS V unlink() call Message-ID: <1019@brl-smoke.ARPA> Date: Mon, 17-Feb-86 19:42:48 EST Article-I.D.: brl-smok.1019 Posted: Mon Feb 17 19:42:48 1986 Date-Received: Wed, 19-Feb-86 20:29:27 EST References: <683@dayton.UUCP> Reply-To: gwyn@brl.ARPA Organization: /usr/local/lib/news/organization Lines: 15 > My question is this: In SYSV do you have* to be SU > to unlink directories? Yes, insofar as the unlink() system call is concerned. (Ditto for making links to directories.) This should be true for any UNIX that does not supply special directory system calls. > Does that mean that to delete *any* directory the program > must be set uid'ed to root? No, you can always use something like: system( "rm directory-name" ); "rm", or a set-UID subprocess "rmdir" that it might invoke, has the necessary privilege.