All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] Buildroot filesystem files' ownership
Date: Sat, 29 Sep 2007 12:12:59 +0200	[thread overview]
Message-ID: <20070929101259.GL20951@aon.at> (raw)
In-Reply-To: <406A31B117F2734987636D6CCC93EE3C023DD3FE@ehost011-3.exch011.intermedia.net>

On Fri, Sep 28, 2007 at 04:24:40PM -0700, Leonid wrote:
>Hi:
>
>Buildroot documentation claims that entire filesystem can be created
>without root priviliges and this is true. However as a result all files
>in filesystem, residing in TARGET_DIR (even device nodes) belongs to
>USER, not to root. While trying to NFS into such filesystem, it doesn't
>work (no console output). I have expected that files which must belong
>to root will be "massaged" by fakeroot but this doesn't happen at least
>for TARGET_DIR.
>
>When I change ownership of all files in the filesystem to root

When you do this, you can no longer build as a user.
>
>sudo chown -Rf root.root .
>
>NFS is working fine. Questions:
>
>1) May be filesystem in the TARGET_DIR is not supposed to be used as
>real target FS - one must use .ext, .jffs2,... images? Where I get
>filesystem for NFS then?

Select either of the target filesystem outputs (e.g. tar) unpack that to
your preferred nfs root and use that copy. I don't remember offhand if
nfs has an option to make all exported files owned 0.0, check the
manpage.

>
>2) What files in the filesystem MUST belong to root - I suspect my
>changing all of them to root is overkill.

the device-nodes should probably initially be owned by root

HTH,

  reply	other threads:[~2007-09-29 10:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-28  8:56 [Buildroot] Building ARM with Soft-float Ulf Samuelsson
2007-09-28 16:28 ` Ulf Samuelsson
2007-09-28 17:01   ` Bernhard Fischer
2007-09-28 21:08     ` Ulf Samuelsson
2007-09-28 21:23       ` Bernhard Fischer
2007-09-28 23:24       ` [Buildroot] Buildroot filesystem files' ownership Leonid
2007-09-29 10:12         ` Bernhard Fischer [this message]
2007-09-28 16:29 ` [Buildroot] Building ARM with Soft-float Bernhard Fischer
2007-09-28 18:56   ` Ulf Samuelsson

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=20070929101259.GL20951@aon.at \
    --to=rep.dot.nop@gmail.com \
    --cc=buildroot@busybox.net \
    /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.