X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Finally managed to create a jailed SFTP server, but how secure? Date: Fri, 5 Dec 2008 15:57:47 -0600 Message-ID: <297343D29C14AA4D822142893ABEAEF305C44997@srv1163ex1.flightsafety.com> In-Reply-To: <536575.54830.qm@web34703.mail.mud.yahoo.com> References: <166589 DOT 77178 DOT qm AT web34704 DOT mail DOT mud DOT yahoo DOT com> <49399A96 DOT 4040203 AT saic DOT com> <536575 DOT 54830 DOT qm AT web34703 DOT mail DOT mud DOT yahoo DOT com> From: "Thrall, Bryan" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id mB5LwXHd014881 TheO wrote on Friday, December 05, 2008 3:46 PM: >> if you are concerned about the "cygdrive" text there is a registry entry >> where you can set that to whatever you want including "". That is what I do. >> I would tell you what it is but my windows machine is not here right now. >> Then when you "ls /" you get /c, /d etc instead of /cygdrive/c, /cygdrive/d, >> etc. >> cheers, >> roger wells > > I found an occurence of cygdrive in my registry: > > HKLM\SOFTWARE\Cygnus Solutions\Cygwin\mount v2\cygdrive prefix > > I changed it /foo but it didn't worked, it still showed /cygdrive inside the > Console > and jailed SFTP :( > > I googled it and apparently it used to work but is no longer supported at > least I'm wrong. I believe it is still supported for Cygwin 1.5. I think what has happened is the Cygwin DLL created an actual /cygdrive directory (which is useful for things like bash completion) in your chroot jail. Now that you've changed the Cygdrive prefix, delete that directory and all should be good. BTW, it is preferable to change the Cygdrive prefix with 'mount -c ' rather than mess around in the registry. -- Bryan Thrall FlightSafety International bryan DOT thrall AT flightsafety DOT com -- 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/