/bin/rsh question

Stefan Farestam farestam at ORION.CERFACS.FR
Sun Jun 30 11:37:24 AEST 1991


   I guess the way to do this is to create a /usr/rbin directory, in
   which you put links to the executables that you want the restricted
   shell to access. Then you set the path of the restricted shell to
   only contain /usr/rbin. I think it is also advisable to create a
   subdirectory in the home directory of the restricted user which you
   place him in whe logging in. A sample .profile for a restricted shell
   could look like:

echo 'Available commands: talk, write and who'
/bin/echo 'tutor logged on '`date` from $REMOTEHOST '\n'\
          `finger @$REMOTEHOST`\
          | mail farestam
PATH=/usr/rbin
trap '.logout' 0
cd sorry


      /Stefan


   .................................................................   
 .             Stefan Farestam    <farestam at cerfacs.fr>              .
.   __ __  __ _  _ _                                                  .
.  /  |_ )|_ /_\/ (          European Centre for Research and         .
 . \_ |__\| /   \__)    Advanced Training in Scientific Computation  .
   .................................................................  



More information about the Comp.sys.sgi mailing list