| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| References: | <18774 DOT 73042 DOT qm AT web34706 DOT mail DOT mud DOT yahoo DOT com> <297343D29C14AA4D822142893ABEAEF305C4486F AT srv1163ex1 DOT flightsafety DOT com> |
| Date: | Fri, 5 Dec 2008 11:36:55 -0800 (PST) |
| From: | TheO <idgajelas AT yahoo DOT com> |
| Subject: | Re: Finally managed to create a jailed SFTP server, but how secure? |
| To: | cygwin AT cygwin DOT com |
| MIME-Version: | 1.0 |
| Message-ID: | <349756.99088.qm@web34706.mail.mud.yahoo.com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
> What about:
>
> $ sftp localhost
> Connecting to localhost...
> sftp> symlink 'C:\Windows' bar
sftp> symlink C:\foobar foobar
sftp> symlink C:\windows windows
sftp> ls -al
drwxr-xr-x 2 root root 0 Dec 5 19:31 .
drwxr-xr-x 3 root root 0 Dec 4 16:22 ..
-rw-r--r-- 1 root root 34 Dec 5 15:52 bar
lrwxrwxrwx 1 root root 4 Dec 5 15:49 foo
lrwxrwxrwx 1 root root 8 Dec 5 19:30 foobar
lrwxrwxrwx 1 root root 9 Dec 5 19:31 windows
sftp> get foobar
Fetching /home/Administrator/foobar to foobar
Couldn't stat remote file: No such file or directory
sftp> cd windows
Couldn't canonicalise: No such file or directory
The command symlink worked but the actual access didn't
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |