Re: 4.1-R: CD-Rom-Unterverzeichnis als non-root kopieren.

From: Oliver Fromme <olli(at)secnetix.de>
Date: Tue, 16 Oct 2001 12:49:23 +0200 (CEST)

Bernd Walter <ticso(at)cicely8.cicely.de> wrote:
> On Tue, Oct 16, 2001 at 10:06:30AM +0200, Oliver Fromme wrote:
> > [...] Außerdem muß man beachten, daß
> > cpio die Permissions bei Verzeichnissen nicht korrekt ko-
> > poiert, sondern hier einfach die umask nimmt.
>
> Das kann ich so nicht bestaetigen:
> [...]

Hmm hmm. Vielleicht steh ich ja grade auf'm Schlauch.
Ich habe folgenden Test verwendet (als User, nicht root):

   $ uname -rs
   FreeBSD 4.4-RELEASE
   $ umask 022
   $ mkdir -p t x/{a,b,c}
   $ touch x/{a,b,c}/{1,2,3}
   $ chmod -R u-w x
   $ ls -l x
   total 3
   dr-xr-xr-x 2 olli wheel 512 Oct 16 12:37 a
   dr-xr-xr-x 2 olli wheel 512 Oct 16 12:37 b
   dr-xr-xr-x 2 olli wheel 512 Oct 16 12:37 c
   $ umask 077
   $ find x | cpio -dump t
   0 blocks
   $ ls -l t/x
   total 3
   drwx------ 2 olli wheel 512 Oct 16 12:37 a
   drwx------ 2 olli wheel 512 Oct 16 12:37 b
   drwx------ 2 olli wheel 512 Oct 16 12:37 c

Ich kann nicht ausschließen, daß ich da irgendwas Dummes
mache (im Normalfall nehme ich halt cpdup, da funktio-
niert's »einfach so«), aber ich sehe jetzt auf Anhieb
nicht, was das sein könnte.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Tue 16 Oct 2001 - 12:49:26 CEST

search this site