From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 31 Jul 2013 17:17:45 +0200 Subject: [Buildroot] How to login as root without password In-Reply-To: References: Message-ID: <20130731171745.14ab06ab@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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