NAME

scpjail - forces a restricted scp-only account within a jailed directory.


USAGE


LOGGING

scpjail will write a message to syslog at facility ``auth'', priority ``notice'' each time it is used sucessfully:

   May  9 22:04:49 whippet scpjail[43364]: executing 
   /usr/local/bin/scp -t /home/luser/JAIL for user luser

scpjail also logs messages at priority ``info'' at numerous places in the script where the attempted connection might fail for various reasons:

   May  9 21:48:09 whippet scpjail[31482]: environment variable 
   SSH_ORIGINAL_COMMAND undefined, dying now.


CONFIGURATION

There are three configurable items, all set by modifying the scpjail script:

$scp contains the full path and name of the scp program on the server. By default, it is defined as ``/usr/local/bin/scp''.

$jail contains the name of the directory within the user's home that the user will be jailed into. By default, it is defined as ``JAIL''.

$logfac contains the facility at which scpjail will send syslog messages. By default, it is defined as ``auth''.


VERSION


  $Revision: 1.9 $


AUTHOR

  Sandor W. Sklar
  Stanford University ITSS
  
  ssklar@stanford.edu
  http://www.stanford.edu/~ssklar/scpjail/


COPYRIGHT

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.