SUMMARY: running shell script from passwd file

From: Clift, Tom CIV NSWCDD, K55 <>
Date: Thu Jan 31 2013 - 10:39:07 EST
 All, too many responses to list the folks but if you replied thanks for the

I ended up leaving the passwd file alone and running a script from the user's

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.


trap "" 2 3

/usr/dt/bin/dtterm -geometry 1280x1024+0+0 -e /export/home/user/startup


trap "" 2 3
if [ -f appname -a -x appname ];
   zenity --text-info --title"Application Error" --filename=errormsg
   exit 1;


The application didn't start. Please contact the helpdesk
Received on Thu Jan 31 10:44:10 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 09:24:59 EDT