Re: Disabling OpenBSD Login Prompt
On 6/10/20 1:10 PM, Steve Williams wrote: > On 10/06/2020 10:31 a.m., Aisha Tammy wrote: >> On 6/10/20 10:46 AM, Steve Williams wrote: >>> Hi, >>> >>> Do you have the proper ioctls to set baud rate, parity, start bits, stop >>> bits so that the serial port is configured correctly? >>> >>> What about flow control? rts/cts, xon/xoff. >>> >>> Dealing with a serial port is it's own art. >>> >> Wow, this is really interesting. >> I'm curious, do the display managers like gdm/xdm, etc also have >> to handle this? >> I'm asking cuz I'm porting a display manager for linux (nothing to >> do with openbsd, but this discussion was very related). >> I'm in a very similar position where the simplest answer would be >> to disable a getty at one of the tty's and start the login prompt >> there (its a visual prompt). >> >> link to display manager, if my writing wasn't clear >> https://git.sr.ht/~kennylevinsen/greetd >> >> Aisha > The baud rate, etc is only applicable to things running over serial RS-232 > (and 422) ports. The original poster specified it is running on "com0". > > A display manager would not (typically) be talking over a serial port > natively. In the old days, X might be talking over a serial port using SLIP > or some such technology, but that has all gone the way of the dodo bird. > Cool, got it. Thanks a lot! Aisha > Cheers, > Steve W. > > > >> >>> Cheers, >>> Steve W. >>> >>> On 10/06/2020 3:03 a.m., Valdrin MUJA wrote: Hi Misc, I want to disable OpenBSD Login prompt at startup -and also after logging out-. Because I want to run my external program instead of ksh. There is an login prompt also in my program and I want to use it. I updated the /etc/ttys ; valdrin# cat /etc/ttys # # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ # # name getty type status comments # console "/usr/libexec/getty std.9600" vt220 off secure ttyC0 "/usr/libexec/getty std.9600" vt220 on secure ttyC1 "/usr/libexec/getty std.9600" vt220 on secure ttyC2 "/usr/libexec/getty std.9600" vt220 on secure ttyC3 "/usr/libexec/getty std.9600" vt220 on secure ttyC4 "/usr/libexec/getty std.9600" vt220 off secure ttyC5 "/usr/libexec/getty std.9600" vt220 on secure ttyC6 "/usr/libexec/getty std.9600" vt220 off secure ttyC7 "/usr/libexec/getty std.9600" vt220 off secure ttyC8 "/usr/libexec/getty std.9600" vt220 off secure ttyC9 "/usr/libexec/getty std.9600" vt220 off secure ttyCa "/usr/libexec/getty std.9600" vt220 off secure ttyCb "/usr/libexec/getty std.9600" vt220 off secure tty00 "/root/myprogram" vt220 on secure tty01 "/usr/libexec/getty std.9600" unknown off tty02 "/usr/libexec/getty std.9600" unknown off tty03 "/usr/libexec/getty std.9600" unknown off tty04 "/usr/libexec/getty std.9600" unknown off tty05 "/usr/libexec/getty std.9600" unknown off tty06 "/usr/libexec/getty std.9600" unknown off tty07 "/usr/libexec/getty std.9600" unknown off I'm connected the device with com0 port so I updated the tty00 to run my external program. However; system is stucking after date appears on startup. starting network reordering libraries: done. starting early daemons: syslogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons: cron. Wed Jun 10 10:27:04 +03 2020 Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. How can I overcome this issue? Thanks.. >
Re: Disabling OpenBSD Login Prompt
On Wed, Jun 10, 2020 at 5:57 PM Valdrin MUJA wrote: > > Hi Misc, > > > > I want to disable OpenBSD Login prompt at startup -and also after logging > out-. Because I want to run my external program instead of ksh. There is an > login prompt also in my program and I want to use it. > > > > I updated the /etc/ttys ; > > valdrin# cat /etc/ttys > # > # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ > # > # name getty typestatus comments > # > console "/usr/libexec/getty std.9600" vt220 off secure > ttyC0 "/usr/libexec/getty std.9600" vt220 on secure > ttyC1 "/usr/libexec/getty std.9600" vt220 on secure > ttyC2 "/usr/libexec/getty std.9600" vt220 on secure > ttyC3 "/usr/libexec/getty std.9600" vt220 on secure > ttyC4 "/usr/libexec/getty std.9600" vt220 off secure > ttyC5 "/usr/libexec/getty std.9600" vt220 on secure > ttyC6 "/usr/libexec/getty std.9600" vt220 off secure > ttyC7 "/usr/libexec/getty std.9600" vt220 off secure > ttyC8 "/usr/libexec/getty std.9600" vt220 off secure > ttyC9 "/usr/libexec/getty std.9600" vt220 off secure > ttyCa "/usr/libexec/getty std.9600" vt220 off secure > ttyCb "/usr/libexec/getty std.9600" vt220 off secure > tty00 "/root/myprogram" vt220on secure > tty01 "/usr/libexec/getty std.9600" unknown off > tty02 "/usr/libexec/getty std.9600" unknown off > tty03 "/usr/libexec/getty std.9600" unknown off > tty04 "/usr/libexec/getty std.9600" unknown off > tty05 "/usr/libexec/getty std.9600" unknown off > tty06 "/usr/libexec/getty std.9600" unknown off > tty07 "/usr/libexec/getty std.9600" unknown off > > > > I'm connected the device with com0 port so I updated the tty00 to run my > external program. However; system is stucking after date appears on startup. > > > > starting network > reordering libraries: done. > starting early daemons: syslogd ntpd. > starting RPC daemons:. > savecore: no core dump > checking quotas: done. > clearing /tmp > kern.securelevel: 0 -> 1 > creating runtime link editor directory cache. > preserving editor files. > starting network daemons: sshd. > starting local daemons: cron. > Wed Jun 10 10:27:04 +03 2020 > > > > > > Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. > How can I overcome this issue? > > > > Thanks.. Are you able to access other terminals after boot (i.e. Ctrl+Alt+F2)? -- Aaron Mason - Programmer, open source addict I've taken my software vows - for beta or for worse
Re: Disabling OpenBSD Login Prompt
On 6/10/20 10:46 AM, Steve Williams wrote: > Hi, > > Do you have the proper ioctls to set baud rate, parity, start bits, stop bits > so that the serial port is configured correctly? > > What about flow control? rts/cts, xon/xoff. > > Dealing with a serial port is it's own art. > Wow, this is really interesting. I'm curious, do the display managers like gdm/xdm, etc also have to handle this? I'm asking cuz I'm porting a display manager for linux (nothing to do with openbsd, but this discussion was very related). I'm in a very similar position where the simplest answer would be to disable a getty at one of the tty's and start the login prompt there (its a visual prompt). link to display manager, if my writing wasn't clear https://git.sr.ht/~kennylevinsen/greetd Aisha > Cheers, > Steve W. > > On 10/06/2020 3:03 a.m., Valdrin MUJA wrote: >> Hi Misc, >> >> I want to disable OpenBSD Login prompt at startup -and also after logging >> out-. Because I want to run my external program instead of ksh. There is an >> login prompt also in my program and I want to use it. >> >> I updated the /etc/ttys ; >> >> valdrin# cat /etc/ttys >> # >> # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ >> # >> # name getty type status comments >> # >> console "/usr/libexec/getty std.9600" vt220 off secure >> ttyC0 "/usr/libexec/getty std.9600" vt220 on secure >> ttyC1 "/usr/libexec/getty std.9600" vt220 on secure >> ttyC2 "/usr/libexec/getty std.9600" vt220 on secure >> ttyC3 "/usr/libexec/getty std.9600" vt220 on secure >> ttyC4 "/usr/libexec/getty std.9600" vt220 off secure >> ttyC5 "/usr/libexec/getty std.9600" vt220 on secure >> ttyC6 "/usr/libexec/getty std.9600" vt220 off secure >> ttyC7 "/usr/libexec/getty std.9600" vt220 off secure >> ttyC8 "/usr/libexec/getty std.9600" vt220 off secure >> ttyC9 "/usr/libexec/getty std.9600" vt220 off secure >> ttyCa "/usr/libexec/getty std.9600" vt220 off secure >> ttyCb "/usr/libexec/getty std.9600" vt220 off secure >> tty00 "/root/myprogram" vt220 on secure >> tty01 "/usr/libexec/getty std.9600" unknown off >> tty02 "/usr/libexec/getty std.9600" unknown off >> tty03 "/usr/libexec/getty std.9600" unknown off >> tty04 "/usr/libexec/getty std.9600" unknown off >> tty05 "/usr/libexec/getty std.9600" unknown off >> tty06 "/usr/libexec/getty std.9600" unknown off >> tty07 "/usr/libexec/getty std.9600" unknown off >> >> I'm connected the device with com0 port so I updated the tty00 to run my >> external program. However; system is stucking after date appears on startup. >> >> >> starting network >> reordering libraries: done. >> starting early daemons: syslogd ntpd. >> starting RPC daemons:. >> savecore: no core dump >> checking quotas: done. >> clearing /tmp >> kern.securelevel: 0 -> 1 >> creating runtime link editor directory cache. >> preserving editor files. >> starting network daemons: sshd. >> starting local daemons: cron. >> Wed Jun 10 10:27:04 +03 2020 >> >> >> Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. >> How can I overcome this issue? >> >> Thanks.. >> >
Re: Disabling OpenBSD Login Prompt
On 10/06/2020 10:31 a.m., Aisha Tammy wrote: On 6/10/20 10:46 AM, Steve Williams wrote: Hi, Do you have the proper ioctls to set baud rate, parity, start bits, stop bits so that the serial port is configured correctly? What about flow control? rts/cts, xon/xoff. Dealing with a serial port is it's own art. Wow, this is really interesting. I'm curious, do the display managers like gdm/xdm, etc also have to handle this? I'm asking cuz I'm porting a display manager for linux (nothing to do with openbsd, but this discussion was very related). I'm in a very similar position where the simplest answer would be to disable a getty at one of the tty's and start the login prompt there (its a visual prompt). link to display manager, if my writing wasn't clear https://git.sr.ht/~kennylevinsen/greetd Aisha The baud rate, etc is only applicable to things running over serial RS-232 (and 422) ports. The original poster specified it is running on "com0". A display manager would not (typically) be talking over a serial port natively. In the old days, X might be talking over a serial port using SLIP or some such technology, but that has all gone the way of the dodo bird. Cheers, Steve W. Cheers, Steve W. On 10/06/2020 3:03 a.m., Valdrin MUJA wrote: Hi Misc, I want to disable OpenBSD Login prompt at startup -and also after logging out-. Because I want to run my external program instead of ksh. There is an login prompt also in my program and I want to use it. I updated the /etc/ttys ; valdrin# cat /etc/ttys # # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ # # name getty type status comments # console "/usr/libexec/getty std.9600" vt220 off secure ttyC0 "/usr/libexec/getty std.9600" vt220 on secure ttyC1 "/usr/libexec/getty std.9600" vt220 on secure ttyC2 "/usr/libexec/getty std.9600" vt220 on secure ttyC3 "/usr/libexec/getty std.9600" vt220 on secure ttyC4 "/usr/libexec/getty std.9600" vt220 off secure ttyC5 "/usr/libexec/getty std.9600" vt220 on secure ttyC6 "/usr/libexec/getty std.9600" vt220 off secure ttyC7 "/usr/libexec/getty std.9600" vt220 off secure ttyC8 "/usr/libexec/getty std.9600" vt220 off secure ttyC9 "/usr/libexec/getty std.9600" vt220 off secure ttyCa "/usr/libexec/getty std.9600" vt220 off secure ttyCb "/usr/libexec/getty std.9600" vt220 off secure tty00 "/root/myprogram" vt220 on secure tty01 "/usr/libexec/getty std.9600" unknown off tty02 "/usr/libexec/getty std.9600" unknown off tty03 "/usr/libexec/getty std.9600" unknown off tty04 "/usr/libexec/getty std.9600" unknown off tty05 "/usr/libexec/getty std.9600" unknown off tty06 "/usr/libexec/getty std.9600" unknown off tty07 "/usr/libexec/getty std.9600" unknown off I'm connected the device with com0 port so I updated the tty00 to run my external program. However; system is stucking after date appears on startup. starting network reordering libraries: done. starting early daemons: syslogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons: cron. Wed Jun 10 10:27:04 +03 2020 Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. How can I overcome this issue? Thanks..
Re: Disabling OpenBSD Login Prompt
Hi, Do you have the proper ioctls to set baud rate, parity, start bits, stop bits so that the serial port is configured correctly? What about flow control? rts/cts, xon/xoff. Dealing with a serial port is it's own art. Cheers, Steve W. On 10/06/2020 3:03 a.m., Valdrin MUJA wrote: Hi Misc, I want to disable OpenBSD Login prompt at startup -and also after logging out-. Because I want to run my external program instead of ksh. There is an login prompt also in my program and I want to use it. I updated the /etc/ttys ; valdrin# cat /etc/ttys # # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ # # name getty typestatus comments # console "/usr/libexec/getty std.9600" vt220 off secure ttyC0 "/usr/libexec/getty std.9600" vt220 on secure ttyC1 "/usr/libexec/getty std.9600" vt220 on secure ttyC2 "/usr/libexec/getty std.9600" vt220 on secure ttyC3 "/usr/libexec/getty std.9600" vt220 on secure ttyC4 "/usr/libexec/getty std.9600" vt220 off secure ttyC5 "/usr/libexec/getty std.9600" vt220 on secure ttyC6 "/usr/libexec/getty std.9600" vt220 off secure ttyC7 "/usr/libexec/getty std.9600" vt220 off secure ttyC8 "/usr/libexec/getty std.9600" vt220 off secure ttyC9 "/usr/libexec/getty std.9600" vt220 off secure ttyCa "/usr/libexec/getty std.9600" vt220 off secure ttyCb "/usr/libexec/getty std.9600" vt220 off secure tty00 "/root/myprogram" vt220on secure tty01 "/usr/libexec/getty std.9600" unknown off tty02 "/usr/libexec/getty std.9600" unknown off tty03 "/usr/libexec/getty std.9600" unknown off tty04 "/usr/libexec/getty std.9600" unknown off tty05 "/usr/libexec/getty std.9600" unknown off tty06 "/usr/libexec/getty std.9600" unknown off tty07 "/usr/libexec/getty std.9600" unknown off I'm connected the device with com0 port so I updated the tty00 to run my external program. However; system is stucking after date appears on startup. starting network reordering libraries: done. starting early daemons: syslogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons: cron. Wed Jun 10 10:27:04 +03 2020 Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. How can I overcome this issue? Thanks..
Re: Disabling OpenBSD Login Prompt
On Wed, 10 Jun 2020 at 10:03, Valdrin MUJA wrote: > > Hi Misc, > > I want to disable OpenBSD Login prompt at startup -and also after logging > out-. Because I want to run my external program instead of ksh. There is an > login prompt also in my program and I want to use it. > What do you mean by "login prompt"? Maybe the MOTD? You need to login in your system, right? Unless your program is a shell (and registered in /etc/shells), you won't be able to log in. https://man.openbsd.org/shells.5 https://man.openbsd.org/login.1 -- Ottavio Caruso
Disabling OpenBSD Login Prompt
Hi Misc, I want to disable OpenBSD Login prompt at startup -and also after logging out-. Because I want to run my external program instead of ksh. There is an login prompt also in my program and I want to use it. I updated the /etc/ttys ; valdrin# cat /etc/ttys # # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ # # name getty typestatus comments # console "/usr/libexec/getty std.9600" vt220 off secure ttyC0 "/usr/libexec/getty std.9600" vt220 on secure ttyC1 "/usr/libexec/getty std.9600" vt220 on secure ttyC2 "/usr/libexec/getty std.9600" vt220 on secure ttyC3 "/usr/libexec/getty std.9600" vt220 on secure ttyC4 "/usr/libexec/getty std.9600" vt220 off secure ttyC5 "/usr/libexec/getty std.9600" vt220 on secure ttyC6 "/usr/libexec/getty std.9600" vt220 off secure ttyC7 "/usr/libexec/getty std.9600" vt220 off secure ttyC8 "/usr/libexec/getty std.9600" vt220 off secure ttyC9 "/usr/libexec/getty std.9600" vt220 off secure ttyCa "/usr/libexec/getty std.9600" vt220 off secure ttyCb "/usr/libexec/getty std.9600" vt220 off secure tty00 "/root/myprogram" vt220on secure tty01 "/usr/libexec/getty std.9600" unknown off tty02 "/usr/libexec/getty std.9600" unknown off tty03 "/usr/libexec/getty std.9600" unknown off tty04 "/usr/libexec/getty std.9600" unknown off tty05 "/usr/libexec/getty std.9600" unknown off tty06 "/usr/libexec/getty std.9600" unknown off tty07 "/usr/libexec/getty std.9600" unknown off I'm connected the device with com0 port so I updated the tty00 to run my external program. However; system is stucking after date appears on startup. starting network reordering libraries: done. starting early daemons: syslogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons: cron. Wed Jun 10 10:27:04 +03 2020 Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. How can I overcome this issue? Thanks..
Re: Ynt: Disabling OpenBSD Login Prompt
On 10/06/2020 12:52, Valdrin MUJA wrote: > Sorry for lack of information, > > Firstly, my program is a kind of interactive shell which has own login > prompt. What I want to do is run my program on startup and do not use OpenBSD > login prompt. > > When I use "chsh", firstly OpenBSD Login Prompt appearing, after that my > program is running and my program's login prompt appearing. > > Lastly, I tried to update /etc/ttys and replace getty with my program to > disable OpenBSD login prompt and run my program. However, obviously this > didn't work. > > In short, I want to disable OpenBSD Login prompt and run my program. So login shell (chsh) has nothing to do with this. Shell is executed after login which is executed after getty. /etc/ttys needs to be changed. reboot after that. But why do you want to change the default getty login? If you just want to change what is displayed you can probably create a custom entry in /etc/gettytab. Also there is /etc/motd for custom messages after login, as another user said. Does your program handling terminal correctly? Does it handle login in a secure way? R u sure? G
Ynt: Disabling OpenBSD Login Prompt
Sorry for lack of information, Firstly, my program is a kind of interactive shell which has own login prompt. What I want to do is run my program on startup and do not use OpenBSD login prompt. When I use "chsh", firstly OpenBSD Login Prompt appearing, after that my program is running and my program's login prompt appearing. Lastly, I tried to update /etc/ttys and replace getty with my program to disable OpenBSD login prompt and run my program. However, obviously this didn't work. In short, I want to disable OpenBSD Login prompt and run my program. Gönderen: Kapetanakis Giannis adına owner-m...@openbsd.org Gönderildi: 10 Haziran 2020 Çarşamba 12:21 Kime: misc@openbsd.org Konu: Re: Disabling OpenBSD Login Prompt On 10/06/2020 12:03, Valdrin MUJA wrote: > Hi Misc, > > I want to disable OpenBSD Login prompt at startup -and also after logging > out-. Because I want to run my external program instead of ksh. There is an > login prompt also in my program and I want to use it. > > I updated the /etc/ttys ; > > valdrin# cat /etc/ttys > # > # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ > # > # name getty typestatus comments > # > console "/usr/libexec/getty std.9600" vt220 off secure > ttyC0 "/usr/libexec/getty std.9600" vt220 on secure > ttyC1 "/usr/libexec/getty std.9600" vt220 on secure > ttyC2 "/usr/libexec/getty std.9600" vt220 on secure > ttyC3 "/usr/libexec/getty std.9600" vt220 on secure > ttyC4 "/usr/libexec/getty std.9600" vt220 off secure > ttyC5 "/usr/libexec/getty std.9600" vt220 on secure > ttyC6 "/usr/libexec/getty std.9600" vt220 off secure > ttyC7 "/usr/libexec/getty std.9600" vt220 off secure > ttyC8 "/usr/libexec/getty std.9600" vt220 off secure > ttyC9 "/usr/libexec/getty std.9600" vt220 off secure > ttyCa "/usr/libexec/getty std.9600" vt220 off secure > ttyCb "/usr/libexec/getty std.9600" vt220 off secure > tty00 "/root/myprogram" vt220on secure > tty01 "/usr/libexec/getty std.9600" unknown off > tty02 "/usr/libexec/getty std.9600" unknown off > tty03 "/usr/libexec/getty std.9600" unknown off > tty04 "/usr/libexec/getty std.9600" unknown off > tty05 "/usr/libexec/getty std.9600" unknown off > tty06 "/usr/libexec/getty std.9600" unknown off > tty07 "/usr/libexec/getty std.9600" unknown off > > I'm connected the device with com0 port so I updated the tty00 to run my > external program. However; system is stucking after date appears on startup. > > > starting network > reordering libraries: done. > starting early daemons: syslogd ntpd. > starting RPC daemons:. > savecore: no core dump > checking quotas: done. > clearing /tmp > kern.securelevel: 0 -> 1 > creating runtime link editor directory cache. > preserving editor files. > starting network daemons: sshd. > starting local daemons: cron. > Wed Jun 10 10:27:04 +03 2020 > > > Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. > How can I overcome this issue? > > Thanks.. Since you're mixing login prompt (getty) with login shell (ksh) and since you don't provide info about "yourprogram" I believe that maybe you you've mixing things up? If you want to change a user's login shell, chsh(1) should be used. This specifies what shell is run for that user after login is successful. getty(8) is controlled by /etc/ttys - ttys(5) and has nothing to do with user login shell. read the man pages. G
Re: Disabling OpenBSD Login Prompt
On 10/06/2020 12:03, Valdrin MUJA wrote: > Hi Misc, > > I want to disable OpenBSD Login prompt at startup -and also after logging > out-. Because I want to run my external program instead of ksh. There is an > login prompt also in my program and I want to use it. > > I updated the /etc/ttys ; > > valdrin# cat /etc/ttys > # > # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ > # > # name getty typestatus comments > # > console "/usr/libexec/getty std.9600" vt220 off secure > ttyC0 "/usr/libexec/getty std.9600" vt220 on secure > ttyC1 "/usr/libexec/getty std.9600" vt220 on secure > ttyC2 "/usr/libexec/getty std.9600" vt220 on secure > ttyC3 "/usr/libexec/getty std.9600" vt220 on secure > ttyC4 "/usr/libexec/getty std.9600" vt220 off secure > ttyC5 "/usr/libexec/getty std.9600" vt220 on secure > ttyC6 "/usr/libexec/getty std.9600" vt220 off secure > ttyC7 "/usr/libexec/getty std.9600" vt220 off secure > ttyC8 "/usr/libexec/getty std.9600" vt220 off secure > ttyC9 "/usr/libexec/getty std.9600" vt220 off secure > ttyCa "/usr/libexec/getty std.9600" vt220 off secure > ttyCb "/usr/libexec/getty std.9600" vt220 off secure > tty00 "/root/myprogram" vt220on secure > tty01 "/usr/libexec/getty std.9600" unknown off > tty02 "/usr/libexec/getty std.9600" unknown off > tty03 "/usr/libexec/getty std.9600" unknown off > tty04 "/usr/libexec/getty std.9600" unknown off > tty05 "/usr/libexec/getty std.9600" unknown off > tty06 "/usr/libexec/getty std.9600" unknown off > tty07 "/usr/libexec/getty std.9600" unknown off > > I'm connected the device with com0 port so I updated the tty00 to run my > external program. However; system is stucking after date appears on startup. > > > starting network > reordering libraries: done. > starting early daemons: syslogd ntpd. > starting RPC daemons:. > savecore: no core dump > checking quotas: done. > clearing /tmp > kern.securelevel: 0 -> 1 > creating runtime link editor directory cache. > preserving editor files. > starting network daemons: sshd. > starting local daemons: cron. > Wed Jun 10 10:27:04 +03 2020 > > > Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. > How can I overcome this issue? > > Thanks.. Since you're mixing login prompt (getty) with login shell (ksh) and since you don't provide info about "yourprogram" I believe that maybe you you've mixing things up? If you want to change a user's login shell, chsh(1) should be used. This specifies what shell is run for that user after login is successful. getty(8) is controlled by /etc/ttys - ttys(5) and has nothing to do with user login shell. read the man pages. G
Disabling OpenBSD Login Prompt
Hi Misc, I want to disable OpenBSD Login prompt at startup -and also after logging out-. Because I want to run my external program instead of ksh. There is an login prompt also in my program and I want to use it. I updated the /etc/ttys ; valdrin# cat /etc/ttys # # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ # # name getty typestatus comments # console "/usr/libexec/getty std.9600" vt220 off secure ttyC0 "/usr/libexec/getty std.9600" vt220 on secure ttyC1 "/usr/libexec/getty std.9600" vt220 on secure ttyC2 "/usr/libexec/getty std.9600" vt220 on secure ttyC3 "/usr/libexec/getty std.9600" vt220 on secure ttyC4 "/usr/libexec/getty std.9600" vt220 off secure ttyC5 "/usr/libexec/getty std.9600" vt220 on secure ttyC6 "/usr/libexec/getty std.9600" vt220 off secure ttyC7 "/usr/libexec/getty std.9600" vt220 off secure ttyC8 "/usr/libexec/getty std.9600" vt220 off secure ttyC9 "/usr/libexec/getty std.9600" vt220 off secure ttyCa "/usr/libexec/getty std.9600" vt220 off secure ttyCb "/usr/libexec/getty std.9600" vt220 off secure tty00 "/root/myprogram" vt220on secure tty01 "/usr/libexec/getty std.9600" unknown off tty02 "/usr/libexec/getty std.9600" unknown off tty03 "/usr/libexec/getty std.9600" unknown off tty04 "/usr/libexec/getty std.9600" unknown off tty05 "/usr/libexec/getty std.9600" unknown off tty06 "/usr/libexec/getty std.9600" unknown off tty07 "/usr/libexec/getty std.9600" unknown off I'm connected the device with com0 port so I updated the tty00 to run my external program. However; system is stucking after date appears on startup. starting network reordering libraries: done. starting early daemons: syslogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons: cron. Wed Jun 10 10:27:04 +03 2020 Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt appears.. How can I overcome this issue? Thanks..