How to properly set up a chrooted environment

d.sastre.medina@gmail.com d.sastre.medina@gmail.com
Thu Apr 1 20:19:00 GMT 2010


Hello,

I'm trying to build a chrooted env in a windows 7 box:
CYGWIN_NT-6.1 win7 1.7.2(0.225/5/3) 2010-03-24 21:12 i686 Cygwin

Before presuming anything, I did my homework, RTFM (found nothing, 
though), STFW and STFCPMLA. Got some recent hits:

[1] http://sourceware.org/ml/cygwin/2009-10/msg00476.html
[2] http://sourceware.org/ml/cygwin/2009-10/msg00198.html

With this in mind, my questions are:
-has this situation changed/evolved in/with 1.7.2 ?
-what is the basic infraestructure needed for a sane env?
-what about mount points?
 i.e, I have this:

normal_user@box ~
$ mount
E:/bin on /usr/bin type ntfs (binary,auto)
E:/lib on /usr/lib type ntfs (binary,auto)
E: on / type ntfs (binary,auto)
H: on /chroot type ntfs (binary)
I: on /usr/local type ntfs (binary)
C: on /mnt/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /mnt/d type ntfs (binary,posix=0,user,noumount,auto)
F: on /mnt/f type ntfs (binary,posix=0,user,noumount,auto)

 and I want to create a chrooted env under /chroot. Should I create a
 /chroot/etc/fstab (would it be ever read) in a way that chrooted_user 
 gets something like:

chrooted_user@box ~
$ mount
H:/chroot / type ntfs (binary,auto)
H:/chroot/bin on /usr/bin type ntfs (binary,auto)
H:/chroot/lib on /usr/lib type ntfs (binary,auto)

 ...or a better approach would be creating a /etc/fstab.d/chrooted_user
 with those definitions?

-is there a canonical way to do this?
 (and where is the manual :-))

Any feedback will be appreciated.
Regards.

-- 
Huella de clave = 943C D77F 0CB0 02FE 166E  E06F D13A A2E1 98A5 C953
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100401/0130adbe/attachment.sig>


More information about the Cygwin mailing list