Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chroot

Status
Not open for further replies.
Mar 31, 2004
151
US
Could somebody tell about chroot? When should it be used?
 
almost never...
one exception: suppose you have to restore
something ABSOLUTE in a RELATIVE path.
g.e.: you have to restore TARFILE (a tar file of
/usr/bin) *** NOTE the absolute path, not ./usr/bin
you can and will not overwrite YOUR /usr/bin
in this case chroot is your friend, see man pages
mkdir /XXX
cp the-statically-linked-tar-cmd to /XXX/s_tar
and also the TARFILE; then
chroot /XXX
now you can read the TARFILE locally to /XXX/usr/bin
./s_tar xfv TARFILE

:) guggach
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top