Re: smb mounted shares under chroot
(i know my english is bad)
i had had the same problem.
so i mounted the folders i want to see under my chroot in
/var/chroot/sid-ia32/... and had an soft link to the normal position
where i mounted that before.
fstab before:
/dev/sda6 /mnt/media_n ext3 noauto,users,defaults 0 0
//winxp/f /mnt/smb/f smbfs
noauto,users,username=BLABLA,password=***** 0 0
---------------
then i have done:
mkdir -p /var/chroot/sid-ia32/mnt/media_n
mkdir -p /var/chroot/sid-ia32/mnt/smb/f
ln -s /mnt/media_n /var/chroot/sid-ia32/mnt/media_n
ln -s /mnt/smb/f /var/chroot/sid-ia32/mnt/smb/f
and in the chroot:
mkdir -p /var/chroot/
ln -s / /var/chroot/sid-ia32
fstab now:
/dev/sda6 /var/chroot/sid-ia32/mnt/media_n ext3
noauto,users,defaults 0 0
//winxp/f /var/chroot/sid-ia32/mnt/smb/f smbfs
noauto,users,username=BLABLA,password=***** 0 0
!!it worked fine!!
Takis Diakoumis schrieb:
Hi
I'm using openoffice under chroot. Two problems still remain - printing
(I need to install printing under chroot also I think ???) and opening
files mounted using samba.
The samba shares are mounted using a script on user login. These are
visible under /home/username/smb-share
The home dirs are mounted under chroot via fstab as follows (from the
superb debian-amd64 howto):
/home /var/chroot/sarge-ia32/home none bind 0 0
problem is that I can't see the mounted share under the above. The
directory the share is mounted on is empty when looking at it via
chroot. So I can't open (or save) any files from the mounted samba share
using any programs running under chroot (in this case, openoffice).
Do I need to install samba under chroot also and have a separate mount
for chroot as well?? And would this even work since I would be mounting
at the same point its already mounted on under normal 64 operation???
I'm a little stumped here.
Perhaps I'm missing an option somewhere???
Any suggestions would be appreciated.
Thanks
Takis
Reply to: