* [Buildroot] Console login root needing a password @ 2012-05-02 23:38 Nigel Sollars 2012-05-03 6:45 ` Yegor Yefremov 0 siblings, 1 reply; 9+ messages in thread From: Nigel Sollars @ 2012-05-02 23:38 UTC (permalink / raw) To: buildroot Hello, Ive built buildroot with a toolchain successfully, however trying to login over the console requires a password. The passwd/shadow is the default. Looking around google apparently this has to do with wchar is this true?, if so is there a fix since this is required for gdb on the target. Regards Nigel -- ?Science is a differential equation. Religion is a boundary condition.? Alan Turing -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120502/95feb3d6/attachment.html> ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-02 23:38 [Buildroot] Console login root needing a password Nigel Sollars @ 2012-05-03 6:45 ` Yegor Yefremov 2012-05-03 9:30 ` Nigel Sollars 0 siblings, 1 reply; 9+ messages in thread From: Yegor Yefremov @ 2012-05-03 6:45 UTC (permalink / raw) To: buildroot Am 03.05.2012 01:38, schrieb Nigel Sollars: > Hello, > > Ive built buildroot with a toolchain successfully, however trying to login over the console requires a password. The passwd/shadow is the default. > > Looking around google apparently this has to do with wchar is this true?, if so is there a fix since this is required for gdb on the target. Have you tried something like this? ttyS0::respawn:-/bin/sh Yegor ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-03 6:45 ` Yegor Yefremov @ 2012-05-03 9:30 ` Nigel Sollars 2012-05-03 12:06 ` Yegor Yefremov 2012-05-03 12:35 ` Graham Newton 0 siblings, 2 replies; 9+ messages in thread From: Nigel Sollars @ 2012-05-03 9:30 UTC (permalink / raw) To: buildroot Hello Yegor, The only ttyO2 i have is in inittab and it looks like this: ttyO2::respawn:/sbin/getty -L ttyO2 115200 vt100 This works fine ( I am able to log in ) on a previous build I did without a toolchain. Here is the link that i referred to ( from google ) http://lists.busybox.net/pipermail/buildroot/2010-May/034546.html Hope this helps Nige On Thu, May 3, 2012 at 2:45 AM, Yegor Yefremov <yegor_sub1@visionsystems.de>wrote: > Am 03.05.2012 01:38, schrieb Nigel Sollars: > > Hello, > > > > Ive built buildroot with a toolchain successfully, however trying to > login over the console requires a password. The passwd/shadow is the > default. > > > > Looking around google apparently this has to do with wchar is this > true?, if so is there a fix since this is required for gdb on the target. > > Have you tried something like this? > > ttyS0::respawn:-/bin/sh > > Yegor > -- ?Science is a differential equation. Religion is a boundary condition.? Alan Turing -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120503/7d49352a/attachment.html> ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-03 9:30 ` Nigel Sollars @ 2012-05-03 12:06 ` Yegor Yefremov 2012-05-03 12:35 ` Graham Newton 1 sibling, 0 replies; 9+ messages in thread From: Yegor Yefremov @ 2012-05-03 12:06 UTC (permalink / raw) To: buildroot Hello Nige, thy this and let me know if it works: ttyO2::respawn:-/bin/sh Yegor Am 03.05.2012 11:30, schrieb Nigel Sollars: > Hello Yegor, > > The only ttyO2 i have is in inittab and it looks like this: > > ttyO2::respawn:/sbin/getty -L ttyO2 115200 vt100 > > This works fine ( I am able to log in ) on a previous build I did without a toolchain. > > Here is the link that i referred to ( from google ) > > http://lists.busybox.net/pipermail/buildroot/2010-May/034546.html > > Hope this helps > Nige > > On Thu, May 3, 2012 at 2:45 AM, Yegor Yefremov <yegor_sub1 at visionsystems.de <mailto:yegor_sub1@visionsystems.de>> wrote: > > Am 03.05.2012 01:38, schrieb Nigel Sollars: > > Hello, > > > > Ive built buildroot with a toolchain successfully, however trying to login over the console requires a password. The passwd/shadow is the default. > > > > Looking around google apparently this has to do with wchar is this true?, if so is there a fix since this is required for gdb on the target. > > Have you tried something like this? > > ttyS0::respawn:-/bin/sh > > Yegor > > > > > -- > ?Science is a differential equation. Religion is a boundary condition.? > Alan Turing > ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-03 9:30 ` Nigel Sollars 2012-05-03 12:06 ` Yegor Yefremov @ 2012-05-03 12:35 ` Graham Newton 2012-05-03 13:42 ` Thomas Petazzoni 1 sibling, 1 reply; 9+ messages in thread From: Graham Newton @ 2012-05-03 12:35 UTC (permalink / raw) To: buildroot On 03/05/12 10:30, Nigel Sollars wrote: > Hello Yegor, > > The only ttyO2 i have is in inittab and it looks like this: > > ttyO2::respawn:/sbin/getty -L ttyO2 115200 vt100 > > This works fine ( I am able to log in ) on a previous build I did > without a toolchain. > > Here is the link that i referred to ( from google ) > > http://lists.busybox.net/pipermail/buildroot/2010-May/034546.html > > Hope this helps > Nige > > On Thu, May 3, 2012 at 2:45 AM, Yegor Yefremov > <yegor_sub1 at visionsystems.de <mailto:yegor_sub1@visionsystems.de>> wrote: > > Am 03.05.2012 01:38, schrieb Nigel Sollars: > > Hello, > > > > Ive built buildroot with a toolchain successfully, however > trying to login over the console requires a password. The > passwd/shadow is the default. > > > > Looking around google apparently this has to do with wchar is > this true?, if so is there a fix since this is required for gdb > on the target. > > Have you tried something like this? > > ttyS0::respawn:-/bin/sh > > Yegor > > > > > -- > "Science is a differential equation. Religion is a boundary condition." > > Alan Turing > > > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot Hi I recently had this issue when I directly mounted the buildroot generated filesystem via NFS. After a frustrating day I discovered that the suid bit had be set on the busybox executable. So when login was run busybox ran as an unknown user (not root) and so failed causing the login to fail. The fix was to run chmod -s busybox on the NFS server. What was baffeling was that the issue went away if I copied the filesystem somewhere else. In the course of my investigations I found I could login if I tried Yegor's solution but it did not give me root access. Hope this helps Graham -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120503/fcf3239d/attachment-0001.html> ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-03 12:35 ` Graham Newton @ 2012-05-03 13:42 ` Thomas Petazzoni 2012-05-04 3:04 ` Nigel Sollars 0 siblings, 1 reply; 9+ messages in thread From: Thomas Petazzoni @ 2012-05-03 13:42 UTC (permalink / raw) To: buildroot Le Thu, 03 May 2012 13:35:39 +0100, Graham Newton <gnewton@peavey-eu.com> a ?crit : > I recently had this issue when I directly mounted the buildroot > generated filesystem via NFS. After a frustrating day I discovered > that the suid bit had be set on the busybox executable. So when > login was run busybox ran as an unknown user (not root) and so failed > causing the login to fail. The fix was to run chmod -s busybox on > the NFS server. What was baffeling was that the issue went away if I > copied the filesystem somewhere else. > In the course of my investigations I found I could login if I tried > Yegor's solution but it did not give me root access. Busybox is normally installed inside the target filesystem image with the suid bit set. From package/busybox/busybox.mk: define BUSYBOX_PERMISSIONS /bin/busybox f 4755 0 0 - - - - - /usr/share/udhcpc/default.script f 755 0 0 - - - - - endef Are you sure: * You extracted output/images/rootfs.tar as root, and didn't use output/target for your NFS export? If you did the latter, then of course all permissions would be wrong, because output/target is created by Buildroot, which doesn't run as root and therefore can't set any special permission. * You configured your NFS export with no_root_squash? Regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-03 13:42 ` Thomas Petazzoni @ 2012-05-04 3:04 ` Nigel Sollars 2012-05-04 6:22 ` Thomas Petazzoni 0 siblings, 1 reply; 9+ messages in thread From: Nigel Sollars @ 2012-05-04 3:04 UTC (permalink / raw) To: buildroot Hello, For this time around Yegor is the winner, it dropped me to a shell directly where I was able to set a root password, this allowed me to ssh into the unit. Thanks Yegor! I tested my target toolchain out and that works like a champ. You buildroot guys kick the proverbial rear end ;). With much gratitude Nige On Thu, May 3, 2012 at 9:42 AM, Thomas Petazzoni < thomas.petazzoni@free-electrons.com> wrote: > Le Thu, 03 May 2012 13:35:39 +0100, > Graham Newton <gnewton@peavey-eu.com> a ?crit : > > > I recently had this issue when I directly mounted the buildroot > > generated filesystem via NFS. After a frustrating day I discovered > > that the suid bit had be set on the busybox executable. So when > > login was run busybox ran as an unknown user (not root) and so failed > > causing the login to fail. The fix was to run chmod -s busybox on > > the NFS server. What was baffeling was that the issue went away if I > > copied the filesystem somewhere else. > > In the course of my investigations I found I could login if I tried > > Yegor's solution but it did not give me root access. > > Busybox is normally installed inside the target filesystem image with > the suid bit set. From package/busybox/busybox.mk: > > define BUSYBOX_PERMISSIONS > /bin/busybox f 4755 0 0 - - - - - > /usr/share/udhcpc/default.script f 755 0 0 - - - - - > endef > > Are you sure: > > * You extracted output/images/rootfs.tar as root, and didn't use > output/target for your NFS export? If you did the latter, then of > course all permissions would be wrong, because output/target is > created by Buildroot, which doesn't run as root and therefore can't > set any special permission. > > * You configured your NFS export with no_root_squash? > > Regards, > > Thomas > -- > Thomas Petazzoni, Free Electrons > Kernel, drivers, real-time and embedded Linux > development, consulting, training and support. > http://free-electrons.com > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot > -- ?Science is a differential equation. Religion is a boundary condition.? Alan Turing -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120503/fed7140e/attachment.html> ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-04 3:04 ` Nigel Sollars @ 2012-05-04 6:22 ` Thomas Petazzoni 2012-05-04 6:32 ` Yegor Yefremov 0 siblings, 1 reply; 9+ messages in thread From: Thomas Petazzoni @ 2012-05-04 6:22 UTC (permalink / raw) To: buildroot Le Thu, 3 May 2012 23:04:05 -0400, Nigel Sollars <nsollars@gmail.com> a ?crit : > For this time around Yegor is the winner, it dropped me to a shell > directly where I was able to set a root password, this allowed me to > ssh into the unit. Well the thing is that you shouldn't have had to do that in the first place. Login should just work fine on the serial console. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] Console login root needing a password 2012-05-04 6:22 ` Thomas Petazzoni @ 2012-05-04 6:32 ` Yegor Yefremov 0 siblings, 0 replies; 9+ messages in thread From: Yegor Yefremov @ 2012-05-04 6:32 UTC (permalink / raw) To: buildroot Am 04.05.2012 08:22, schrieb Thomas Petazzoni: > Le Thu, 3 May 2012 23:04:05 -0400, > Nigel Sollars <nsollars@gmail.com> a ?crit : > >> For this time around Yegor is the winner, it dropped me to a shell >> directly where I was able to set a root password, this allowed me to >> ssh into the unit. > > Well the thing is that you shouldn't have had to do that in the first > place. Login should just work fine on the serial console. With -/bin/sh was actually a tip from as Thomas as I needed to login to pty without a login. And as Thomas says you shouldn't have a problem with default image. Entering "root" as login and without a password is sufficient. After that you can execute passwd root. Yegor ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-05-04 6:32 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-05-02 23:38 [Buildroot] Console login root needing a password Nigel Sollars 2012-05-03 6:45 ` Yegor Yefremov 2012-05-03 9:30 ` Nigel Sollars 2012-05-03 12:06 ` Yegor Yefremov 2012-05-03 12:35 ` Graham Newton 2012-05-03 13:42 ` Thomas Petazzoni 2012-05-04 3:04 ` Nigel Sollars 2012-05-04 6:22 ` Thomas Petazzoni 2012-05-04 6:32 ` Yegor Yefremov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox