Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760544AbWLFMRL (ORCPT ); Wed, 6 Dec 2006 07:17:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760543AbWLFMRL (ORCPT ); Wed, 6 Dec 2006 07:17:11 -0500 Received: from mtagate5.uk.ibm.com ([195.212.29.138]:22928 "EHLO mtagate5.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760544AbWLFMRK (ORCPT ); Wed, 6 Dec 2006 07:17:10 -0500 Mime-Version: 1.0 In-Reply-To: <200612051720.kB5HKU4i001616@dell2.home> From: rainer@de.ibm.com (Rainer Bawidamann) Subject: Re: ownership/permissions of cpio initrd To: linux-kernel@vger.kernel.org Cc: "Marty Leisner" Content-Type: text/plain; charset=us-ascii Message-Id: Date: Wed, 06 Dec 2006 13:17:08 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 24 In article <200612051720.kB5HKU4i001616@dell2.home>, "Marty Leisner" writes: > But its "useful" to change permissions/ownership of the initrd > files at times... > > Since a cpio is just a userspace created string of bits, I suppose > you can apply a set of ownership/permissions to files IN the archive > by playing with the bits... > > Does such a tool exist? Comments? Seems very useful in order to > avoid being root... The kernel sources provide a program that should do what you want in linux/usr/gen_init_cpio.c Documentation is available in the source or from the command line. Rainer - 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/