Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 28 Aug 2004 20:42:45 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: OpenSSH-3.9p1-1, mysterious -r option, and documented steps to resolve "Connection to host closed." message was sshd privilege separation problem In-Reply-To: <4130BC6D.A986894E@dessent.net> Message-ID: References: <412EAB86 DOT 1060709 AT cox DOT net> <41301832 DOT 70404 AT cox DOT net> <4130BC6D DOT A986894E AT dessent DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Sat, 28 Aug 2004, Brian Dessent wrote: > Greg Morgan wrote: > > > OPTION 1.) > > ... > > I looked at Cygwin /usr/bin/ssh-host-config configuration script and > > found the command line that I would use: > > ... > > OPTION 2.) > > ... > > The use vim's search and replace functions to > > change all the sshd -a -D occurrences to sshd -a "-D -r" like so > > Option 3: > > echo "-D -r" >/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs Umm, first off: $ cat /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs -De $ (which indicates the absense of the newline in that value), so you have to at least use "echo -n". Secondly: $ echo -n "-Der" > /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs bash: /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs: Read only file system $ AFAIR, /proc/registry has always been read-only. What you *can* do, however, is: $ regtool -- set /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs "-Der" $ HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/