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: Fri, 25 Jul 2003 21:45:37 +0300 From: Ville Herva To: cygwin AT cygwin DOT com Subject: Re: SFTP only account Message-ID: <20030725184537.GE135678@niksula.cs.hut.fi> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i On Wed, Jul 23, 2003 at 10:12:45PM -0400, you [Igor Pechtchanski] wrote: > > Instead of setting the shell to /bin/false, set it to a script that checks > the parameters (e.g., which program is invoked), and quits with a non-zero > return code if the program is not "sftp", for example. That same script > can also do "chroot" to your FTP directory, so the user can't get out of > it. Be sure to set all the relevant shell variables in the script (e.g., > PATH, IFS, etc). There are a couple of such scripts available. Search the openssh mailing list archive. rssh is one of them: http://www.pizzashack.org/rssh scponly is another: http://www.sublimation.org/scponly/ There may be others. -- v -- v AT iki DOT fi -- 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/