[Buildroot] How to login as root without password

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Tue Jul 30 14:02:58 UTC 2013


On Tue, Jul 30, 2013 at 3:40 PM, zhou qiang <zhouqiang.search at gmail.com> wrote:
> Hi , Thomas
>
> Thank you for your reply .
>
> Yes , I am using busybox .
>
> And if using "sudo" instead of "fakeroot"  to extract root filesystem .
> then burn to the board , It login as root ,even execute "chown -R user:user
> rootfs" .
> before burning .
>
> But I can not give sudo permission to other users on ther server.

What exactly does the burning step imply? How exactly are you putting
the rootfs on target?
You should normally not extract the rootfs and make modifications to
it after it has been packaged. Any change you want to make to the
rootfs, for example to change /etc/inittab, should be done before the
image is created.
The following section in the manual describes different ways to
accomplish that:
http://buildroot.uclibc.org/downloads/manual/manual.html#rootfs-custom
A post-build script is a convenient solution for this type of change.

Best regards,
Thomas


More information about the buildroot mailing list