i started tinit as <tinit -p &> and login as <login &> in image
what my observations are when i am use telnet as below
#telnet xxx.xxx.x.xx
it is waiting so long time, when i press ENTER button “two times” then it showing login command
but when i try to login for first time it is not working but second time it is logging into qnx perfectly
i don’t know what is happening and where i am doing wrong,please tell me why this is happening
i started tinit as <tinit &> in image script and included login file as below
#/bin/login=/bin/login
by pidin command i am able to see tinit and login both are running but when i use telnet from windows the same above problem is coming…
In image what i am observed is tinit is in “nanosleep” state while in OS it is in “Reply” state i am thinking this may be the issue but i don’t know how to solve this…please tell me what i have to do to avoid this problem
I don’t believe tinit is involved here. (I could be wrong, it’s been a while).
When you telnet into a machine, 1) the fact you have to wait a long time to see the “connected to …” line, means you have a mis-configuration of DNS resolving on QNX side.
Once connected, inetd start telnetd, telnetd in turn open a tty/pty pair (thus devc-tty need to be there), telnetd will then spawn /bin/login on one side of the terminal, the fact you see “telnetd: /bin/login: …” indicate /bin/login is spawed, but faild.
/bin/login involve a few other files, /etc/passwd, /etc/shadow, and probably /bin/sh are all important. You may want to check all these files exisit at the right place.