From: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: root login over serial port using shadow
Date: Wed, 17 Mar 2010 15:49:26 +0100 [thread overview]
Message-ID: <201003171549.27421.marcin@juszkiewicz.com.pl> (raw)
In-Reply-To: <4BA0DB15.1030904@eukrea.com>
Dnia środa, 17 marca 2010 o 14:37:25 Eric Bénard napisał(a):
> Hi,
>
> for the followinf, the distro in Angstrom.
>
> When using shadow as the IMAGE_LOGIN_MANAGER, login doesn't work as root
> over the serial port if a password is set for root and whatever the
> setting done under securretty or /etc/security or /etc/login.defs
>
> The problem is the following :
> inittab says :
> S:2345:respawn:/sbin/getty 115200 ttyS0
>
> getty is using /bin/login as a default. But /bin/login is a link to
> busybox thus when login on the serial port, busybox's login will be used
> and not shadow's login which is at /usr/bin/login
>
> changing inittab to :
> S:2345:respawn:/sbin/getty 115200 ttyS0 -l /usr/bin/login
> solves the problem.
>
> Now the question : what is the right way to tell the shadow package to
> replace /bin/login of busybox by its proper /usr/bin/login when it's
> installed ?
You need this commit as it moves login to /bin/ dir:
commit b3045d2a282ef408f599d9a722df61e85ef636b5
Author: Koen Kooi <koen@openembedded.org>
Date: Fri Mar 5 11:33:36 2010 +0100
shadow: use u-a on binaries that conflict with util-linux-ng
Regards,
--
JID: hrw@jabber.org
Website: http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
next prev parent reply other threads:[~2010-03-17 14:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-17 13:37 root login over serial port using shadow Eric Bénard
2010-03-17 14:49 ` Marcin Juszkiewicz [this message]
2010-03-17 16:31 ` Eric Bénard
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=201003171549.27421.marcin@juszkiewicz.com.pl \
--to=marcin@juszkiewicz.com.pl \
--cc=openembedded-devel@lists.openembedded.org \
/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