Apologies for the non-bug.  I misread the manual page as a combined
result of skimming visually and use of search with a / which is case
sensitive.  I found the right section after starting at the beginning
and reading through in sequence.  I would propose the following
modification to make searching and skimming easier for sshrc.

/Lars

Index: src/usr.bin/ssh/sshd.8
===================================================================
RCS file: /cvs/src/usr.bin/ssh/sshd.8,v
retrieving revision 1.291
diff -u -p -u -r1.291 sshd.8
--- src/usr.bin/ssh/sshd.8      24 Jun 2017 06:28:50 -0000      1.291
+++ src/usr.bin/ssh/sshd.8      16 Oct 2017 09:22:12 -0000
@@ -345,12 +345,15 @@ system password database.
 .El
 .Sh SSHRC
 If the file
-.Pa ~/.ssh/rc
+.Pa /etc/ssh/sshrc
 exists,
 .Xr sh 1
 runs it after reading the
 environment files but before starting the user's shell or command.
-It must not produce any output on stdout; stderr must be used
+Otherwise, if the file
+.Pa ~/.ssh/rc
+exists, it will be run instead.
+Neither may produce any output on stdout; stderr must be used
 instead.
 If X11 forwarding is in use, it will receive the "proto cookie" pair in
 its standard input (and

Reply via email to