Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757086AbWLEVrT (ORCPT ); Tue, 5 Dec 2006 16:47:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758272AbWLEVrT (ORCPT ); Tue, 5 Dec 2006 16:47:19 -0500 Received: from mailer.gwdg.de ([134.76.10.26]:58050 "EHLO mailer.gwdg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757086AbWLEVrS (ORCPT ); Tue, 5 Dec 2006 16:47:18 -0500 Date: Tue, 5 Dec 2006 22:43:03 +0100 (MET) From: Jan Engelhardt To: Jeffrey Hundstad cc: "Horst H. von Brand" , Marty Leisner , linux-kernel@vger.kernel.org, bug-cpio@gnu.org, martin.leisner@xerox.com Subject: Re: ownership/permissions of cpio initrd In-Reply-To: <4575DD73.9010008@mnsu.edu> Message-ID: References: <200612052024.kB5KOY1o023781@laptop13.inf.utfsm.cl> <4575D7F4.3060707@mnsu.edu> <4575DD73.9010008@mnsu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1217 Lines: 41 On Dec 5 2006 14:58, Jeffrey Hundstad wrote: > > ...It also let's you mknod and friends, and let's you set permissions to files > to more than just ONE user. The whole point of the commands is to let you make > distribution files without root access. Of course you can fake all of this > with a special archiver command.... I'm just throwing out options. Ah. Thanks for explaining! Looks like it eats big amounts of memory when there are a lot of files in the faekroot. > > $ fakeroot > # mkdir root > # mkdir root/dev/ > # mknod root/dev/null c 1 3 > # mknod root/dev/sda1 b 8 1 > # chown root.disk root/dev/sda1 > # cd root > # tar cvf ../root.tar ./ > # exit > $ tar tvf root.tar > drwxr-xr-x root/root 0 2006-12-05 14:54 ./ > drwxr-xr-x root/root 0 2006-12-05 14:54 ./dev/ > crw-r--r-- root/root 1,3 2006-12-05 14:54 ./dev/null > brw-r--r-- root/disk 8,1 2006-12-05 14:54 ./dev/sda1 > > -- > Jeffrey Hundstad > > > -`J' -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/