SUMMARY: running shell script from passwd file
"Clift, Tom CIV NSWCDD, K55" <[email protected]> Thu, 31 Jan 2013 10:39:07 -0500
| Newsgroups | gmane.os.solaris.managers |
|---|---|
| Message-ID | <A39899C3-C324-4AE0-BB7E-3FDE255577AB@mimectl> |
All, too many responses to list the folks but if you replied thanks for the info. I ended up leaving the passwd file alone and running a script from the user's .dtprofile. Our task was to only restrict one users to one application and we didn't have a lot of time/effort to put into the task. Just so you know, this is what I did to allow the application to start at login and to exit the session once the user is finished. We didn't want the user to have access to a shell or any other windows/unix command. Also we trapped the interrupt and hangup so the user couldn't break out. I'm sure this could have be done many ways and more elaborate but this works for now. .dtprofile: trap "" 2 3 /usr/dt/bin/dtterm -geometry 1280x1024+0+0 -e /export/home/user/startup /export/home/user/startup: #!/bin/sh trap "" 2 3 if [ -f appname -a -x appname ]; then appname; else zenity --text-info --title"Application Error" --filename=errormsg exit 1; fi errormsg: The application didn't start. Please contact the helpdesk