From owner-freebsd-hackers Mon Oct 18 6:23:45 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id B593114BC5 for ; Mon, 18 Oct 1999 06:23:39 -0700 (PDT) (envelope-from babolo@links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id RAA09383; Mon, 18 Oct 1999 17:24:08 +0400 (MSD) Message-Id: <199910181324.RAA09383@aaz.links.ru> Subject: Re: how mkdir without .. ? In-Reply-To: <3808BAF9.9E8A2474@gorean.org> from "Doug" at "Oct 16, 99 10:50:49 am" To: Doug@gorean.org (Doug) Date: Mon, 18 Oct 1999 17:24:08 +0400 (MSD) Cc: freebsd-hackers@FreeBSD.ORG From: "Aleksandr A.Babaylov" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug writes: > "Aleksandr A.Babaylov" wrote: > > I need in directories without link to parent in it > > or with link to parent renamed to something exotic name. > What are you trying to accomplish? If you are trying to create > directories that users cannot "escape" out of, all you need to do is > remove the world rx permissions on the parent directory, and make sure > that they don't have access via the group permissions. You might also > want to look at chroot. I have several GByteg archives, some of it have .. members in it. Archives have different format (.rar, .zip, .arj so on). When I try to inspect archives on regular basis, .. members waste my filesystem or produse errors (it depends on safty methods on filesystem) Presence of ../../../.. directory which is NOT the path back will do all I want. I remember, that in really old UNIXes creating a dirertory and populating it with "." and ".." entryes was different steps, but I dont remember method (I was young and dumb then) -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message