Wind River Support Network

HomeDefectsLIN6-3362
Fixed

LIN6-3362 : telnetd using /usr/bin/login instead of /bin/login

Created: May 17, 2013    Updated: Mar 10, 2016
Resolved Date: Nov 28, 2013
Previous ID: LIN5-3613, LIN6-2800
Found In Version: 6.0
Fix Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
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