Hi,
We were HP UX user before we migrated to IBM F50 few months ago. In
the HP system, we used shell script in the .profile to guide users
when they login. In the shell script, we put in a trap command to
prevent user from interrupting the program and get into '$' prompt,
the command is as follows:
trap 'stty 0; kill -9 0' 1 2 3 15
After porting to IBM, we discovered that the above command caused
problem. The problem is : if the process that the user was running
did not get disconnected gracefully (for example, the phone line
dropped in the case of remote users) the process would be hung and run
away, this had wasted system resources and pulled down the system
performance a lot. After changing the trap command to the following
the problem vanished:
trap 1 2 3
But this has since opened a security hole in the system as users could
actually break the system and get into '$' prompt.
Any advice to solve this problem?
Thanks in advance for your help.
Regards,
Y. Wei