From owner-freebsd-hackers Thu Jun 15 11:34:42 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA04943 for hackers-outgoing; Thu, 15 Jun 1995 11:34:42 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id LAA04937 for ; Thu, 15 Jun 1995 11:34:39 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id LAA03091; Thu, 15 Jun 1995 11:34:22 -0700 From: "Rodney W. Grimes" Message-Id: <199506151834.LAA03091@gndrsh.aac.dev.com> Subject: Re: mtree To: charnier@lirmm.fr (Philippe Charnier) Date: Thu, 15 Jun 1995 11:34:22 -0700 (PDT) Cc: hackers@freebsd.org In-Reply-To: <199506151348.PAA08969@lirmm.lirmm.fr> from "Philippe Charnier" at Jun 15, 95 03:48:05 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1089 Sender: hackers-owner@freebsd.org Precedence: bulk > > hello, > > I tried the following: > > rm -rf /usr/games > mtree -deU -f /usr/src/mtree/BSD.usr.dist -p /usr > > It was not able to create /usr/games/hide because it didn't create dir > /usr/games first. I tried with -p /an-empty-dir (make hierarchy DESTDIR=...) > and it worked as expected. I don't see how it could have possible attempted to create /usr/games/hide before creating /usr/games: /set type=dir uname=games gname=bin mode=0700 games uname=bin mode=0755 hide .. .. Perhaps you where not running this as root???? Mtree gets pretty sick if not run as root!!! > It also worked fine with: > mkdir /usr/games > mtree -deU -f /usr/src/mtree/BSD.usr.dist -p /usr > > Can someone explain me why it fails in the first case? Only thing I can think of is non-root trying to run this, and games gets created mode 0700 which stops you as a normal user from creating any dirs under it. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD