Date: Thu, 15 Jun 1995 11:34:22 -0700 (PDT) From: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> To: charnier@lirmm.fr (Philippe Charnier) Cc: hackers@freebsd.org Subject: Re: mtree Message-ID: <199506151834.LAA03091@gndrsh.aac.dev.com> In-Reply-To: <199506151348.PAA08969@lirmm.lirmm.fr> from "Philippe Charnier" at Jun 15, 95 03:48:05 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506151834.LAA03091>