Login Running a Captive Shell Script
Posted on 2004-04-06
I have written a shell script (ksh) that allows a user to use a menu selection to nfs mount remote partitions. I want this shell script to automatically launch when the user logs into a dedicated login, run without the user being able to exit it <ctl c>, and log out when the user selects <exit> from the menu selections. The login account will have sudoer permission to mount/unmount only.
Should the shell be launched from the .profile?
What needs to be in the shell to prevent a <ctl c>, etc, exit?
Special permissions on the script or the .profile?
Any "how-tos" in case I'm forgetting (to ask) something?