boot sequence QNX 6.2

I want to login automatically at the boot sequence. Which file I have to change to boot the system without the system is asking for my user name and password?

Further I want to start automatically a application in Photon. I tried it with the $home/.ph/phapps file, but it doesn’t work.

Has anyone a solution for these problems?

Thanks
Fred

PS I use the free trial version of QNX 6.2

it worked with me after modifying the file /etc/rc.d/rc.local like this :
export LOGNAME=[your user name]
export HOME=/home/[your user name]

make shure the a.m. file exists
if not, create it and execute the command “chmod 775 /etc/rc.d/rc.local”

there’s much more to read about the rc.local file when you click “knowledge base” at “www.qnx.com/support/” and search for keyword.

Helge

ohuuu …

just saw you’re a new member. don’t get lost at qnx’s knowledge base.
there’s just too many interesting stuff to read and hack upon. i love it. GOOD LUCK !

Helge

:smiley: Thanks-- It works!!

fred

I’ve tried to put these strings into rc.local:
export LOGNAME=root
export HOME=/root
and executed chmod, but QNX 6.2.1 NC asked me for username and password.
What shoud I do to start as root without login prompt?
I’ve tried also to remark tinit in rc.sysinit. Then QNX displays after loading:
sh: j_init tcgetpgrp() failed: Inappropriate I/O control operation
sh: warning: won’t have full job control
What does it mean?

Try putting this in your rc.local file:

login -f root

I’ve already tried it. QNX outputs:

Starting extra run commands
Password:

After inputing password:
sh: j_init tcgetpgrp() failed: Inappropriate I/O control operation
sh: warning: won’t have full job control

The tinit starts initial processes on several ttys. This can be configured by the /etc/config/ttys file. First try to start a “/bin/login -f root” on your /dev/con1…4 . Your /etc/config/ttys may look like:


con1 “/bin/login -f root” qansi-m on


On tty /dev/con1 you will see a shell without login.A simple “id” command
will show uid=0(root) gid=0(root) …

The second possibility is to start a shell “/bin/sh” on your tty and work with the login -f root in your rc.local.