inmbolmie / 5250_usb_converter

Converter to plug an IBM 5251 terminal to a Linux PC via USB emulating a VT52 terminal
GNU General Public License v3.0
34 stars 6 forks source link

Instead of a shell, present a login prompt #5

Closed blackbit42 closed 4 years ago

blackbit42 commented 4 years ago

Usual terminal behavior is to ask the user to authenticate themselves before getting a shell, which makes sense generally.

inmbolmie commented 4 years ago

Thanks, that sounds reasonable as it will provide the true vintage look and feel for the terminal. Maybe as a command line feature because I imagine for most users showing directly the prompt is ok.

inmbolmie commented 4 years ago

I made this, you need to pass the "-l" parameter at the command line, BUT I've found that in most modern Linuxes (like my Ubuntu) the login command only can be run by root, so to make this work you have to run the script as root or make some nasty changes to your system to enable login to run as non-root user.

I wouldn't recommend to anyone to run the script as root, but I will leave this option for "advanced" users.