On May 20, 2020 9:31:19 PM UTC, Edgar Pettijohn <[email protected]> wrote: >On Wed, May 20, 2020 at 08:48:20PM +0200, Valdrin MUJA wrote: >> Hi Misc, >> >> I have an interactive shell program which has an authentication >section and I want to login via my program. How can I do that? >> >> Actually I want to run this program instead of /bin/ksh. I changed >the root's shell with "chsh -s /bin/{my_program} root" command. >However, when the system boots, firstly OpenBSD Login is coming and >after that my program is running. >> >> In short, I want to run an external program on startup without >OpenBSD Login. > >I believe login(1) is executed by getty(8) which is started by init(8). >So you would likely have to make changes to one or more of them. But I >could be wrong. > >Edgar
I believe /etc/ttys controls getty, which may or not help. Getty is respawned too. https://man.openbsd.org/man5/ttys.5

