www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/12/14:10:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3F392D8F.6040602@keyww.com>
Date: Tue, 12 Aug 2003 11:10:23 -0700
From: jwaterbrook <jwaterbrook AT keyww DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: michael's openssh for windows
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0308111956290 DOT 7386-100000 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.44.0308111956290.7386-100000@slinky.cs.nyu.edu>
X-OriginalArrivalTime: 12 Aug 2003 18:10:24.0298 (UTC) FILETIME=[003520A0:01C360FD]

This thread lead me to many turns in the road to what I found to be a 
solution for me:
someone suggested adding /usr/sbin/sftp-server to the passwd file 
instead of the original /bin/switch or /bin/sh.

however, scp doesn't work along with ssh, but I was trying to get sftp 
working, so I see no loss.

I have yet to figure out a way to jail the user though.  They can still 
cd into /cygdrive/c and also cd .. and see the passwd file.

If anyone has suggestions on this please comment.

Thanks,
Johnny

Igor Pechtchanski wrote:

> The thread starting at 
> <http://cygwin.com/ml/cygwin/2003-07/msg01379.html>
> 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/ 
> <http://cs.nyu.edu/%7Epechtcha/>
>       |\      _,,,---,,_                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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019