LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Horst H. von Brand" <vonbrand@inf.utfsm.cl>
To: "Marty Leisner" <linux@rochester.rr.com>
Cc: linux-kernel@vger.kernel.org, bug-cpio@gnu.org, martin.leisner@xerox.com
Subject: Re: ownership/permissions of cpio initrd
Date: Tue, 05 Dec 2006 17:07:49 -0300	[thread overview]
Message-ID: <200612052007.kB5K7ntk023359@laptop13.inf.utfsm.cl> (raw)
In-Reply-To: Message from "Marty Leisner" <linux@rochester.rr.com>  of "Tue, 05 Dec 2006 12:20:30 CDT." <200612051720.kB5HKU4i001616@dell2.home>

Marty Leisner <linux@rochester.rr.com> wrote:
> I'm working on an embedded system with the 2.6 kernel -- cpio
> initrd was a new feature I'm looking at (and very welcome).
> 
> The major advantage I see is you don't have MAKE a filesystem
> on the build host (doing cross development).  So you don't have
> to be root.

> 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...

The easy way out is to unpack the initrd, fix permissions, and repack. That
requires root, though (it creates devices).

> Does such a tool exist?  Comments?  Seems very useful in order to
> avoid being root...

I'd use sudo(1) + specially cooked commands to unpack/pack an initrd. It is
a bit more work, but gives you extra flexibility (i.e., not just futzing
around with permissions, can also add/replace/edit/rename/delete files, ...
using bog standard tools).
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513

  reply	other threads:[~2006-12-05 20:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <linux@rochester.rr.com>
2006-12-05 17:20 ` Marty Leisner
2006-12-05 20:07   ` Horst H. von Brand [this message]
2006-12-05 20:17     ` Jeffrey Hundstad
2006-12-05 20:24       ` Horst H. von Brand
2006-12-05 20:32         ` Jan Engelhardt
2006-12-05 20:35         ` Jeffrey Hundstad
2006-12-05 20:39           ` Jan Engelhardt
2006-12-05 20:58             ` Jeffrey Hundstad
2006-12-05 21:43               ` Jan Engelhardt
2006-12-06  6:54       ` Marty Leisner
2006-12-05 20:30   ` Andreas Schwab
2006-12-05 21:56     ` Leisner, Martin
2006-12-05 22:23       ` Andreas Schwab
2006-12-06 12:17   ` Rainer Bawidamann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200612052007.kB5K7ntk023359@laptop13.inf.utfsm.cl \
    --to=vonbrand@inf.utfsm.cl \
    --cc=bug-cpio@gnu.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rochester.rr.com \
    --cc=martin.leisner@xerox.com \
    --subject='Re: ownership/permissions of cpio initrd' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).