Re: Howto change login mechanism on OpenBSD

2020-05-31 Thread Marcus MERIGHI
hello, valdrin.m...@zoho.com (Valdrin MUJA), 2020.05.25 (Mon) 16:47 (CEST): > Actually I updated the /etc/ttys file and add my program instead of > getty. However, after boot, there was still OpenBSD login prompt > before my program started.  as already mentioned, init(8) respawns the program sp

Re: Howto change login mechanism on OpenBSD

2020-05-25 Thread Valdrin MUJA
Hello Again, Actually I updated the /etc/ttys file and add my program instead of getty. However, after boot, there was still OpenBSD login prompt before my program started.  On the other hand, I tried chpass -s $myprogram $user, but still I'm faced with the same problem again, there was OpenBS

Howto change login mechanism on OpenBSD

2020-05-20 Thread Valdrin MUJA
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 bo

Re: Howto change login mechanism on OpenBSD

2020-05-20 Thread Jeff Joshua Rollin
On Wed, 2020-05-20 at 17:00 -0500, Edgar Pettijohn wrote: > On Wed, May 20, 2020 at 09:50:17PM + > > > > I believe /etc/ttys controls getty, which may or not help. Getty is > > respawned too. > > https://man.openbsd.org/man5/ttys.5 > > I think you're right. Might just need to change a line in /et

Re: Howto change login mechanism on OpenBSD

2020-05-20 Thread Edgar Pettijohn
On Wed, May 20, 2020 at 09:50:17PM +, Kevin Chadwick wrote: > On May 20, 2020 9:31:19 PM UTC, Edgar Pettijohn > 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 wan

Re: Howto change login mechanism on OpenBSD

2020-05-20 Thread Kevin Chadwick
On May 20, 2020 9:31:19 PM UTC, Edgar Pettijohn 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 thi

Re: Howto change login mechanism on OpenBSD

2020-05-20 Thread Edgar Pettijohn
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