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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 12 Aug 2003 16:13:47 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: jwaterbrook cc: cygwin AT cygwin DOT com Subject: Re: michael's openssh for windows In-Reply-To: <3F39371E.7050408@keyww.com> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII You might try to change that script to #!/bin/sh echo "Parameters: $@" exec /bin/sh "$@" Hope this helps, Igor On Tue, 12 Aug 2003, jwaterbrook wrote: > A comment about the script method: > > for some reason, this didn't seem to return any result. > I added /usr/bin/sftponly to the passwd file instead of /bin/sh or > /bin/switch > and created a /usr/bin/sftponly file with this inside: > #!/bin/sh > > echo "$*" > > /bin/sh > > however, this did not create any output. So I have a feeling, nothing > is being passed in this build. > > I may be going at this the wrong way, so if anyone would like to correct > me, please do so. > > Thanks, > Johnny > > > Igor Pechtchanski wrote: > > > The thread starting at > > > > might be of help. > > Igor > > > > On Mon, 11 Aug 2003, jwaterbrook wrote: > > > > > I haven't seemed to get very far with this, > > > I was hoping someone might be able to point a blind man in the right > > > direction > > > > > > Waterbrook, Johnny wrote: > > > > > > > I'd prefer not to start a new thread, but I've been searching for the > > > > past few hours with no luck. > > > > > > > > I needed a fast way to set up sftp on a winXP box, so I did a little > > > > google search and found lexa.mckenna.edu/sshwindows/ had a clean and > > > > easy way of doing this. > > > > I changed the regestry setting "/home" to a different drive, and the > > > > passwd file's entry form :/home/USERNAME: to :/home: so when my "auts > > > > ex-uncle" wants to login to my sftp server, they can't browse my windows > > > > directory structure. > > > > > > > > However, when my "aunts ex-uncle" realizes he can also ssh into the box, > > > > I don't want him running "windows" commands such as cmd, nbtstat, dir > > > > etc. I just want to "limit" him to what is available in /bin I guess. > > > > > > > > Am I going about this wrong? Is there a cygwin/openssh implemenation > > > > that "stands alone" from windows so I could set up a sftp server much > > > > like a normal ftp server? > > > > > > > > Thanks in advance, > > > > Johnny -- 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! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/