root login over serial port using shadow
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
Dnia środa, 17 marca 2010 o 14:37:25 Eric Bénard napisał(a):
Quoted 16 lines
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/securityor/etc/login.defsThe problem is the following :
inittab says :
S:2345:respawn:/sbin/getty 115200 ttyS0getty is using
/bin/loginas a default. But/bin/loginis 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
Quoted 7 lines
changing inittab to :
S:2345:respawn:/sbin/getty 115200 ttyS0 -l/usr/bin/loginsolves the problem.Now the question : what is the right way to tell the shadow package to replace
/bin/loginof busybox by its proper/usr/bin/loginwhen it's installed ?
You need this commit as it moves login to /bin/ dir:
commit b3045d2a282ef408f599d9a722df61e85ef636b5
Author: Koen Kooi <[email protected]> Date: Fri Mar 5 11:33:36 2010 +0100
shadow: use u-a on binaries that conflict with util-linux-ng
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Hi Marcin,
Quoted 8 lines · Marcin Juszkiewicz
You need this commit as it moves login to
/bin/dir:commit
b3045d2a282ef408f599d9a722df61e85ef636b5Author: Koen Kooi<[email protected]> Date: Fri Mar 5 11:33:36 2010 +0100shadow: use u-a on binaries that conflict with util-linux-ng
thanks, my previous image using shadow was compiled on the 03/04, just the day before this patch !
Eric