Mail Archives: cygwin/2004/08/28/20:42:50
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/
- Raw text -