From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] How to login as root without password
Date: Wed, 31 Jul 2013 17:17:45 +0200 [thread overview]
Message-ID: <20130731171745.14ab06ab@skate> (raw)
In-Reply-To: <CAHbR41Xzw1RsrR8ZykwvWjXyP_GKzQRWghTo0hjq2z=sPGsabQ@mail.gmail.com>
Dear zhou qiang,
On Wed, 31 Jul 2013 23:03:18 +0800, zhou qiang wrote:
> Of course , if extract rootfs.tar as root , everything works pretty well ,
> busybox login as root .
> But in the server , there is no root permission .
>
> So the issue is how to login as root without "operation of extract
> rootfs.tar as root".
As Thomas De Schampheleire suggested, you should write a Buildroot
post-build script that copies your application into the root
filesystem, and let Buildroot do the fakeroot game to finally generate
your ready-to-use JFFS2 image.
Another option is to use fakeroot manually outside of Buildroot, but
beware that you have to execute *all* the commands manipulating the
root filesystem under a *single* fakeroot session. Since you apparently
don't fully understand the implications of fakeroot, I'd really suggest
you to use a Buildroot post-build script instead.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2013-07-31 15:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 10:43 [Buildroot] How to login as root without password zhou qiang
2013-07-30 12:39 ` Thomas De Schampheleire
2013-07-30 13:40 ` zhou qiang
2013-07-30 14:02 ` Thomas De Schampheleire
2013-07-31 15:03 ` zhou qiang
2013-07-31 15:11 ` Thomas De Schampheleire
2013-07-31 15:17 ` Thomas Petazzoni [this message]
2013-08-01 8:09 ` zhou qiang
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=20130731171745.14ab06ab@skate \
--to=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox