Operating System - HP-UX
1748271 Members
3837 Online
108760 Solutions
New Discussion юеВ

User and password correction at logon

 
SOLVED
Go to solution
Bill Hassell
Honored Contributor

Re: User and password correction at logon

Actually, the ttyconf fixup is permanent for all logins once it has been issued. It won't take effect for the console until a reboot, but works for all other connections (serial, modem, telnet). The situation (until recently) was that all terminal connections would default to #=backspace and @=cancel since these were used on hardcopy terminals decades ago. Patches were introduced some time ago to set the defaults for login. login occurs long before any stty settings in /etc/profile so the values must be set in a special way for the driver to remember. It doesn't hurt anything to put the stty settings for ttyconf in a startup file however.


Bill Hassell, sysadmin
Daniel_29
Advisor

Re: User and password correction at logon

This script ask for a parameter.
The link won't give it a parameter at startup time...
Am I wrong
Rodney Hills
Honored Contributor

Re: User and password correction at logon

During startup the script will be launched as-

S901fix_tty_bs start

"start" is passed to each startup script. HP has some documentation on developing startup scripts that discusses this.

HTH

-- Rod Hills
There be dragons...
Bill Hassell
Honored Contributor

Re: User and password correction at logon

All startup scripts are really start and stop scripts. The bootup processing will supply the words start, stop, start_msg and stop_msg depending on what is happening. The best documentation for the script is in /sbin/init.d/template which is a good starting point for creating your own start/stop script. In the case of stty../dev/ttyconf, there is no stop action to take, just put the stty line in the start section, save it with a unique name like /sbin/init.d/miscstartup and then put a symbolic link in /sbin/rc3.d, something like S998miscstartup.


Bill Hassell, sysadmin