I've been thinking of writing a dialback program for Solaris (v2.6).
I was thinking I could have ttymon call my program which would then
call /usr/bin/login. I can't figure out how /usr/bin/login gets
its information. I have ttymon calling a program that prints the
arguments it gets and environment variables. Before my program is
called, the "login: " prompt is shown. I type in a user name and
then my program is called. The user name is not given as an option
or in an environment variable. How does the login program get the
user name? The man page for login says it will prompt for the login
name if not given, but when I dial up, I don't get the "login: "
prompt twice, so it must be getting it somehow.
Thanks for any info.
Disclaimer: Any/All views expressed
here have been proved to be my own. [http://www.csh.rit.edu/~adam/]