tinit and ftp problems

In QNX4 I used to do a “tinit -t/dev/ser1 -t/dev/con1 -T/dev/com* *”

How do I get a login to spawn on serial port or consoles with tinit??? If
I use [+session] sh it spawns a shell OK. See script below.

I have login & sh in the PATH and have tried repositioning tinit but I can’t
get a login to spawn.

FTP
I’m tring to login as root but it refuses my connection. I took root out of
ftpusers and the -l off the in.ftpd line in inetd.conf.

How can I ftp as root ? I have passwd with a valid shadow file under /etc
and when I telnet as root/passwd it works fine.

[+script] .script = {
TERM=vt100
slogger &

seedres
pci-bios &
waitfor /dev/pci

devc-ser8250 -b9600 -e &
reopen /dev/ser1
display_msg Welcome to GE/QNX6

devb-eide cam quiet blk automount=hd0t79:/,cache=1m,delwri=5 &
waitfor /dev/hd0t79

/etc/system/sysinit

[+session] tinit & <—***************THIS
#[+session] sh

#devc-con -n9 &
#reopen /dev/con1
#display_msg Welcome to GE/QNX6
#[+session] sh
}

tinit under qnx6 isn’t the same as qnx4, it pretty much only starts
photon.

There is “getty” that can do this for you, but there is no docs on the
system on how to use this. You’ll have to find a NetBSD doc to use it.

Regards
Jason

Dennis Morehart <demorehart@earthlink.net> wrote:

In QNX4 I used to do a “tinit -t/dev/ser1 -t/dev/con1 -T/dev/com* *”

How do I get a login to spawn on serial port or consoles with tinit??? If
I use [+session] sh it spawns a shell OK. See script below.

I have login & sh in the PATH and have tried repositioning tinit but I can’t
get a login to spawn.

FTP
I’m tring to login as root but it refuses my connection. I took root out of
ftpusers and the -l off the in.ftpd line in inetd.conf.

How can I ftp as root ? I have passwd with a valid shadow file under /etc
and when I telnet as root/passwd it works fine.

[+script] .script = {
TERM=vt100
slogger &

seedres
pci-bios &
waitfor /dev/pci

devc-ser8250 -b9600 -e &
reopen /dev/ser1
display_msg Welcome to GE/QNX6

devb-eide cam quiet blk automount=hd0t79:/,cache=1m,delwri=5 &
waitfor /dev/hd0t79

/etc/system/sysinit

[+session] tinit & <—***************THIS
#[+session] sh

#devc-con -n9 &
#reopen /dev/con1
#display_msg Welcome to GE/QNX6
#[+session] sh
}

Why can’t ‘tinit’ work like did in the past. I am trying to redirect things
out the /dev/ser1 port and when the cable is removed the shell terminates.
The documentation implies that “It invokes ‘login’ on the console(s) and
serial terminals, or phlogin if you specify the -p option”. When I start
devc-con -n9 & and tinit &, logins get spawned only on /dev/con1 but it does
continually loop and spawn logins. Don’t tell me I have to write a script or
a program to check for activity on consoles and serial ports to spawn
logins. telnet works like expected but I still get kicked off when I try to
ftp in as root even though I have remove root from ftpusers.

Dennis

“Jason Clarke” <jclarke@qnx.com> wrote in message
news:9j6t71$56i$1@nntp.qnx.com

tinit under qnx6 isn’t the same as qnx4, it pretty much only starts
photon.

There is “getty” that can do this for you, but there is no docs on the
system on how to use this. You’ll have to find a NetBSD doc to use it.

Regards
Jason

Dennis Morehart <> demorehart@earthlink.net> > wrote:
In QNX4 I used to do a “tinit -t/dev/ser1 -t/dev/con1 -T/dev/com* *”

How do I get a login to spawn on serial port or consoles with tinit???
If
I use [+session] sh it spawns a shell OK. See script below.

I have login & sh in the PATH and have tried repositioning tinit but I
can’t
get a login to spawn.

FTP
I’m tring to login as root but it refuses my connection. I took root out
of
ftpusers and the -l off the in.ftpd line in inetd.conf.

How can I ftp as root ? I have passwd with a valid shadow file under
/etc
and when I telnet as root/passwd it works fine.

[+script] .script = {
TERM=vt100
slogger &

seedres
pci-bios &
waitfor /dev/pci

devc-ser8250 -b9600 -e &
reopen /dev/ser1
display_msg Welcome to GE/QNX6

devb-eide cam quiet blk automount=hd0t79:/,cache=1m,delwri=5 &
waitfor /dev/hd0t79

/etc/system/sysinit

[+session] tinit & <—***************THIS
#[+session] sh

#devc-con -n9 &
#reopen /dev/con1
#display_msg Welcome to GE/QNX6
#[+session] sh
}

\

I believe it reads the /etc/config/ttys file - try adding your port to
this file.

I’ll submit a documentation PR for this.

Dennis Morehart <demorehart@earthlink.net> wrote:

Why can’t ‘tinit’ work like did in the past. I am trying to redirect things
out the /dev/ser1 port and when the cable is removed the shell terminates.
The documentation implies that “It invokes ‘login’ on the console(s) and
serial terminals, or phlogin if you specify the -p option”. When I start
devc-con -n9 & and tinit &, logins get spawned only on /dev/con1 but it does
continually loop and spawn logins. Don’t tell me I have to write a script or
a program to check for activity on consoles and serial ports to spawn
logins. telnet works like expected but I still get kicked off when I try to
ftp in as root even though I have remove root from ftpusers.

Dennis

“Jason Clarke” <> jclarke@qnx.com> > wrote in message
news:9j6t71$56i$> 1@nntp.qnx.com> …

tinit under qnx6 isn’t the same as qnx4, it pretty much only starts
photon.

There is “getty” that can do this for you, but there is no docs on the
system on how to use this. You’ll have to find a NetBSD doc to use it.

Regards
Jason

Dennis Morehart <> demorehart@earthlink.net> > wrote:
In QNX4 I used to do a “tinit -t/dev/ser1 -t/dev/con1 -T/dev/com* *”

How do I get a login to spawn on serial port or consoles with tinit???
If
I use [+session] sh it spawns a shell OK. See script below.

I have login & sh in the PATH and have tried repositioning tinit but I
can’t
get a login to spawn.

FTP
I’m tring to login as root but it refuses my connection. I took root out
of
ftpusers and the -l off the in.ftpd line in inetd.conf.

How can I ftp as root ? I have passwd with a valid shadow file under
/etc
and when I telnet as root/passwd it works fine.

[+script] .script = {
TERM=vt100
slogger &

seedres
pci-bios &
waitfor /dev/pci

devc-ser8250 -b9600 -e &
reopen /dev/ser1
display_msg Welcome to GE/QNX6

devb-eide cam quiet blk automount=hd0t79:/,cache=1m,delwri=5 &
waitfor /dev/hd0t79

/etc/system/sysinit

[+session] tinit & <—***************THIS
#[+session] sh

#devc-con -n9 &
#reopen /dev/con1
#display_msg Welcome to GE/QNX6
#[+session] sh
}


\


cburgess@qnx.com