New: can't login (root or default)
https://bugs.busybox.net/show_bug.cgi?id=5366
Summary: can't login (root or default)
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: anton at fit.com.ru
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Created attachment 4424
--> https://bugs.busybox.net/attachment.cgi?id=4424
config file for the buildroot
After building the rootfs it seems that i can't login.
For instance, after the login prompt i type 'root', then it asks for the password (from what i understand it should have skipped that and show the shell prompt).
"
Welcome to Buildroot
buildroot login: root
Password:
Login incorrect
buildroot login: default
Password:
Login incorrect
buildroot login:
"
The corresponding config file is included in the attachment.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
https://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #1 from Thomas Petazzoni <[email protected]> 2012-07-19 07:57:07 UTC --- Can you try disabling BR2_PACKAGE_UTIL_LINUX_AGETTY=y and doing a full rebuild
(make clean; make) ?
We generally only use the getty program from Busybox, so if you use the getty program from util-linux, there may be a need to adapt certain configuration files.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #2 from Shokurov Anton V. <[email protected]> 2012-07-19 13:53:15 UTC --- (In reply to comment #1)
Quoted 2 lines
Can you try disabling BR2_PACKAGE_UTIL_LINUX_AGETTY=y and doing a full rebuild (make clean; make) ?
Yup,...
It did not help.
I have a feeling it has to do with the WCHAR (the last time i had such a problem disabling it and everything that depended on it solved the problem).
Quoted 4 lines
We generally only use the getty program from Busybox, so if you use the getty program from util-linux, there may be a need to adapt certain configuration files.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #3 from Thomas Petazzoni <[email protected]> 2012-07-20 08:20:59 UTC --- Can you repost your new .config and confirm that you did a complete "make
clean; make" ?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #4 from Shokurov Anton V. <[email protected]> 2012-07-20 11:25:54 UTC --- Created attachment 4436
--> https://bugs.busybox.net/attachment.cgi?id=4436
config file that has the AGETTY turned off
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #5 from Shokurov Anton V. <[email protected]> 2012-07-20 11:26:59 UTC --- (In reply to comment #3)
Quoted 2 lines
Can you repost your new .config and confirm that you did a complete "make clean; make" ?
sure can.
It's more like:
make clean
make uclibc-menuconfig (to switch on the c99 floating-point support) make
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #6 from Thomas Petazzoni <[email protected]> 2012-07-20 12:26:50 UTC --- Can you ask Buildroot to generate a tarball from your root filesystem, and put
it online somewhere (if it doesn't contain anything confidential or
proprietary)?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #7 from Shokurov Anton V. <[email protected]> 2012-07-20 12:50:08 UTC --- (In reply to comment #6)
Quoted 3 lines
Can you ask Buildroot to generate a tarball from your root filesystem, and put it online somewhere (if it doesn't contain anything confidential or proprietary)?
Ye, i can:
http://narod.ru/disk/57181292001.18e379e53510d51e84a28efe2e5ef7bc/rootfs.tar.gz.html
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #8 from Shokurov Anton V. <[email protected]> 2012-07-26 04:55:42 UTC --- (In reply to comment #6)
Quoted 3 lines
Can you ask Buildroot to generate a tarball from your root filesystem, and put it online somewhere (if it doesn't contain anything confidential or proprietary)?
I think i figures out the cause of the problem.
What should the '/bin/login' be? In the versions that work it points to 'busybox'. In the version that does not work (this version) it's a standard executable.
Could this be the reason that i can't login?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #9 from Thomas Petazzoni <[email protected]> 2012-07-26 06:50:42 UTC --- (In reply to comment #8)
Quoted 6 lines
I think i figures out the cause of the problem.
What should the '/bin/login' be? In the versions that work it points to 'busybox'. In the version that does not work (this version) it's a standard executable.Could this be the reason that i can't login?
Ah, yes, good point! /bin/login can be provided by util-linux. I thought about getty (which I told you already), but I forgot about /bin/login. Can you try disabling BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS to see if it works better?
It would be nice to figure out why the /bin/login from util-linux doesn't work. My initial suspicion would be that it lacks the SUID-root bit set, but on my system /bin/login doesn't have this bit set. Or maybe the util-linux /bin/login requires some configuration file that we don't have or something.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #10 from Jonathan Liu <[email protected]> 2012-07-26 07:41:23 UTC --- Have you tried changing root:x: to root:: in /etc/passwd?
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #11 from Shokurov Anton V. <[email protected]> 2012-07-26 19:06:59 UTC --- (In reply to comment #9)
Quoted 7 lines
(In reply to comment #8)
Quoted 5 lines
I think i figures out the cause of the problem.
What should the '/bin/login' be? In the versions that work it points to 'busybox'. In the version that does not work (this version) it's a standard executable.
Quoted 6 lines
Quoted 1 line
Could this be the reason that i can't login?
Ah, yes, good point!
/bin/logincan be provided by util-linux. I thought about getty (which I told you already), but I forgot about/bin/login. Can you try disablingBR2_PACKAGE_UTIL_LINUX_LOGIN_UTILSto see if it works better?
Yup, if i disable BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS it works (i can login).
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] can't login (root or default)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
--- Comment #12 from Shokurov Anton V. <[email protected]> 2012-07-26 19:09:16 UTC --- (In reply to comment #10)
Quoted 6 lines
It would be nice to figure out why the
/bin/loginfrom util-linux doesn't work. My initial suspicion would be that it lacks the SUID-root bit set, but on my system/bin/logindoesn't have this bit set. Or maybe the util-linux/bin/loginrequires some configuration file that we don't have or something.Have you tried changing root:x: to root:: in
/etc/passwd?
Yes, i have. This does make it work (i can login), but since this is a 'hack' (i don't know why this makes it work) i refrained from using this in our system.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] Login doesn't work with util-linux versions of login/agetty
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|can't login (root or |Login doesn't work with
|default) |util-linux versions of
| |login/agettySignature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] Login doesn't work with util-linux versions of login/agetty
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
Gustavo Zacarias <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
AssignedTo|unassigned at buildroot.uclibc |gustavo at zacarias.com.ar
|.org |--- Comment #13 from Gustavo Zacarias <[email protected]> 2013-12-11 17:15:55 UTC --- This should be fixed by commits 72b3c1db513a6235fd5e5f00fb6c15071ffc6015, 33e3245e047858cd89223cf5b4afbf4cb32318b0 and 1a0b170a55126115d883f6cde9871e06a80f9cc2 (maybe i'm missing some other) for the 2014.02 release.
If you're still seeing issues with this feel free to reopen this bug with the details (and using a latest git version). Thanks.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5366] Login doesn't work with util-linux versions of login/agetty
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
Dhananjay Patil <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
Version|unspecified |2017.11
CC| |dhananjay.patil at lnttechserv
| |ices.com--- Comment #14 from Dhananjay Patil <[email protected]> --- I am facing same problem for buildroot 2017.11
Both options BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS and BR2_PACKAGE_UTIL_LINUX_AGETTY are disabled.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 5366] Login doesn't work with util-linux versions of login/agetty
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5366
Carlos Santos <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|REOPENED |RESOLVED--- Comment #15 from Carlos Santos <[email protected]> --- (In reply to Dhananjay Patil from comment #14)
Please do not reopen an old case just because you see a similar problem six years later. Both Buildroot and util-linux changed a lot since 2012. Open a new bug and attach your defconfig, as well as other information that can be useful to reproduce your problem, instead.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.