2015年4月26日 星期日

Self define chroot environment

1. Create new required root directory.
2. Create all needed directories. ($newroot $newroot/dev $newroot/bin $newroot/home $newroot/lib $newroot/etc $newroot/usr/lib $newroot/usr/bin $newroot/proc $newroot/dev/pts)
3. Collect needed execution files and libraries. Copy these needed files . The destination location will be on ${newroot}/bin and ${newroot}/lib
4, Copy required configuration files. (/etc files:   group  passwd  profile)
5. Do chroot command. (In user SSH login session, or define in inittab to chroot during sysinit boot time)

沒有留言:

張貼留言