Wind River Support Network

HomeDefectsLIN5-3635
Fixed

LIN5-3635 : telnetd using /usr/bin/login instead of /bin/login

Created: May 17, 2013    Updated: Dec 19, 2017
Resolved Date: Jun 3, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.4
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Networking

Description

When telnetd is enabled it will fail to allow logins as it is hard-wired to execute /usr/bin/login when in fact this program is located in /bin/login

Steps to Reproduce

$ configure --enable-board=qemux86-64 --enable-rootfs=glibc_cgl --enable-kernel=cgl
$ make fs
$ cp export/RPMS/x86_64/inetutils-telnetd-1.9.1-r3.x86_64.rpm export/dist/root
$ make start-target

On the target, login as root and then:

root@qemu0:~# rpm -ivh inetutils-telnetd-1.9.1-r3.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:inetutils-telnetd      ########################################### [100%]
root@qemu0:~# /etc/init.d/xinetd restart
Stopping internet superserver: xinetd.
Starting internet superserver: xinetd.
root@qemu0:~# telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.

Linux 3.4.34-grsec-WR5.0.1.3_cgl (localhost.localdomain) (pts/0)

telnetd: /usr/bin/login -p -h localhost.localdomain : No such file or directory.
Connection closed by foreign host.
root@qemu0:~# which login
/bin/login
root@qemu0:~#

Other Downloads


Live chat
Online