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



Reply via email to