DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-01-21 11:46:12

angraymond
New member
Registered: 2008-01-21
Posts: 3

Access BuzyBox from chroot debian...

how can i mount the buzybox filesystem in chroot debian?
i wan to access files which are outside the chrooted debian in debian.....

thanks...

Offline

 

#2 2008-01-21 13:25:50

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Access BuzyBox from chroot debian...

You can't access files outside the chroot from within the chroot, some people setup "chroot jails" for applications for security purposes - although how secure this actually is is debatable. One option is to move the files inside the chroot and change any applications using those files to look at the new path. e.g: If you have your debian install under /mnt/HD_a2/sarge and have a /mnt/HD_a2/media folder containing your music collection that you want to access in the chroot, moving /mnt/HD_a2/media to /mnt/HD_a2/sarge/media would allow the files to be accessed in the chroot under /media as well as allowing your media server outside the chroot to access the files under /mnt/HD_a2/sarge/media.

Offline

 

#3 2008-01-21 20:07:32

ChrisOwens
Member
Registered: 2007-12-07
Posts: 31

Re: Access BuzyBox from chroot debian...

Alternatively, in your fun_plug file, before you chroot, you can set up some links that make the  files visible from within the chroot environment.

Let's say, for example, you wanted to be able to get to the files in /bin from within your chroot environment, which you happen to call /mnt/HD_a2/debian

in your fun_plug, you could do

Code:

mkdir -p /mnt/HD_a2/debian/original_bin

mount --rbind /bin /mnt/HD_a2/debian/original_bin

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB