So if
you??™ve ever been scared to play with Linux for fear you??™d break it, BackTrack is your
chance to play away!
Along with this freedom and reliability, however, comes an added overhead of saving
files that you want to save. It??™s especially noticeable when you try to use BackTrack as an
everyday operating system where you read your e-mail, browse, send IMs, and so on.
You could make a new module of your home directory before each reboot to save your
e-mail and bookmarks, but maybe there??™s an easier way. Let??™s explore different ways to
automatically preserve your home directory contents from session to session.
Gray Hat Hacking: The Ethical Hacker??™s Handbook
110
Creating a New Base Module with
All the Desired Directory Contents
If you poke around in the base modules directory, you??™ll see both root.lzm and
home.lzm. So if the contents of /root and /home are already stored in a module, you
could just overwrite them both in the reboot and shutdown script (/etc/rc.d/rc.6). As
long as you keep all the files you want to save in these two directory hives, it should work
great, right? Let??™s make sure it works by trying it one command at a time:
bt ~ # dir2lzm /root /tmp/root.lzm
[ ] 1/6367 0%
Right away, we see a problem.
Pages:
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257