ls / under chroot

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Tue Nov 6 20:09:00 GMT 2012


On Tue, Nov 06, 2012 at 05:40:48PM +0100, marco atzeri wrote:
>On 11/6/2012 5:30 PM, Pierre A. Humblet wrote:
>> The following output was observed when implementing anonymous ftp (chrooted)
>> on XP with the latest Cygwin
>> Looks like the /cygdrive, /dev and /proc entries are generated even for
>> chrooted /
>>
>> ftp> ls
>> 200 PORT command successful.
>> 150 Opening ASCII mode data connection for '/bin/ls'.
>> total 24
>> dr-xr-xr-x  1 Guest                 None      0 Nov  5 21:37 cygdrive
>> dr-xr-xr-x  1 Guest                 None      0 Nov  5 21:37 dev
>> -rw-r-----  1 Guest                 None  46956 Nov  5 20:17 ftpd.c
>> proc: No such file or directory
>> 226 Transfer complete.
>
>see last sentence on "File Access" paragraph
>http://cygwin.com/cygwin-ug-net/highlights.html#ov-hi-files

That sentence is true but it is debatable whether cygdrive and dev should
be available in a chrooted environment.  There probably is no reason for
cygdrive but dev might be necessary since you can't just mount it
currently.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list