From: Jeffrey Hundstad <jeffrey.hundstad@mnsu.edu>
To: "Horst H. von Brand" <vonbrand@inf.utfsm.cl>
Cc: Marty Leisner <linux@rochester.rr.com>,
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 14:17:22 -0600 [thread overview]
Message-ID: <4575D3D2.20004@mnsu.edu> (raw)
In-Reply-To: <200612052007.kB5K7ntk023359@laptop13.inf.utfsm.cl>
You can also use fakeroot(1).
Start fakeroot.
Change all of your permissions as you see fit.
make your cpio
exit fakeroot.
Horst H. von Brand wrote:
> 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).
>
next prev parent reply other threads:[~2006-12-05 20:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-05 17:20 ownership/permissions of cpio initrd Marty Leisner
2006-12-05 20:07 ` Horst H. von Brand
2006-12-05 20:17 ` Jeffrey Hundstad [this message]
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=4575D3D2.20004@mnsu.edu \
--to=jeffrey.hundstad@mnsu.edu \
--cc=bug-cpio@gnu.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rochester.rr.com \
--cc=martin.leisner@xerox.com \
--cc=vonbrand@inf.utfsm.cl \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.