This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to properly set up a chrooted environment


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

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]