From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-devel@lists.openembedded.org
Subject: root login over serial port using shadow
Date: Wed, 17 Mar 2010 14:37:25 +0100 [thread overview]
Message-ID: <4BA0DB15.1030904@eukrea.com> (raw)
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 ?
Many thanks
Eric
next reply other threads:[~2010-03-17 13:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-17 13:37 Eric Bénard [this message]
2010-03-17 14:49 ` root login over serial port using shadow Marcin Juszkiewicz
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=4BA0DB15.1030904@eukrea.com \
--to=eric@eukrea.com \
--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