[BACK]Return to sshd.8 CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshd.8 between version 1.175 and 1.176

version 1.175, 2002/03/29 19:16:22 version 1.176, 2002/04/05 20:56:21
Line 1316 
Line 1316 
 .It Pa $HOME/.ssh/rc  .It Pa $HOME/.ssh/rc
 If this file exists, it is run with /bin/sh after reading the  If this file exists, it is run with /bin/sh after reading the
 environment files but before starting the user's shell or command.  environment files but before starting the user's shell or command.
 If X11 spoofing is in use, this will receive the "proto cookie" pair in  It must not produce any output on stdout; stderr must be used
 standard input (and  instead.
   If X11 forwarding is in use, it will receive the "proto cookie" pair in
   its standard input (and
 .Ev DISPLAY  .Ev DISPLAY
 in environment).  in its environment).
 This must call  The script must call
 .Xr xauth 1  .Xr xauth 1
 in that case.  because
   .Nm
   will not run xauth automatically to add X11 cookies.
 .Pp  .Pp
 The primary purpose of this file is to run any initialization routines  The primary purpose of this file is to run any initialization routines
 which may be needed before the user's home directory becomes  which may be needed before the user's home directory becomes
Line 1331 
Line 1335 
 This file will probably contain some initialization code followed by  This file will probably contain some initialization code followed by
 something similar to:  something similar to:
 .Bd -literal  .Bd -literal
         if read proto cookie; then  if read proto cookie && [ -n "$DISPLAY" ]; then
                 echo add $DISPLAY $proto $cookie | xauth -q -          if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
                   # X11UseLocalhost=yes
                   xauth add unix:`echo $DISPLAY |
                       cut -c11-` $proto $cookie
           else
                   # X11UseLocalhost=no
                   xauth add $DISPLAY $proto $cookie
         fi          fi
   fi
 .Ed  .Ed
 .Pp  .Pp
 If this file does not exist,  If this file does not exist,
 .Pa /etc/ssh/sshrc  .Pa /etc/ssh/sshrc
 is run, and if that  is run, and if that
 does not exist either, xauth is used to store the cookie.  does not exist either, xauth is used to add the cookie.
 .Pp  .Pp
 This file should be writable only by the user, and need not be  This file should be writable only by the user, and need not be
 readable by anyone else.  readable by anyone else.

Legend:
Removed from v.1.175  
changed lines
  Added in v.1.176