RE: smb mounted shares under chroot

2005-06-15 Thread Takis Diakoumis
Thanks for the responses folks

Ok, I got it working as a separate bind mounts as suggested.
My fstab now includes the smb shares as follows:

/home/username/smbshare /var/chroot/sarge-ia32/home/username/smbshare none
noauto,user,bind 0 0 

worked great and I now have openoffice and other chroot programs able to see
mounted shares from my home dir.

Thanks heaps for the help

Takis


-Original Message-
From: Sven Krahn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 15 June 2005 4:51 PM
To: debian-amd64@lists.debian.org
Subject: Re: smb mounted shares under chroot

On 6/15/05, Takis Diakoumis <[EMAIL PROTECTED]> wrote:

> 
> /home/var/chroot/sarge-ia32/homenonebind0   0 

Just a stupid thing to check (which I was stumbling over some time
ago): if your user's home directory is on a different partition which
is mounted below the home directory (in this case you probably do not
see your user's home dir at all in the chroot), then this must be
specified additionally for the chroot fstab entries as well:

/home/username/var/chroot/sarge-ia32/home/usernamenone   
bind0   0

Possibly this is similar for samba shares, and you have to bind-mount
the smb shares explicitely in your fstab as well, something like

/home/username/smb-share   
/var/chroot/sarge-ia32/home/username/smb-sharenonebind   
0   0

(in addition to your already exisiting entry). I did not check this as
I currently don't use samba shares on my amd64, but maybe you could
give it a try.

-- 
Best regards / Mit den besten GrĂ¼ssen
Sven Krahn



Re: smb mounted shares under chroot

2005-06-14 Thread Sven Krahn
On 6/15/05, Takis Diakoumis <[EMAIL PROTECTED]> wrote:

> 
> /home/var/chroot/sarge-ia32/homenonebind0   0 

Just a stupid thing to check (which I was stumbling over some time
ago): if your user's home directory is on a different partition which
is mounted below the home directory (in this case you probably do not
see your user's home dir at all in the chroot), then this must be
specified additionally for the chroot fstab entries as well:

/home/username/var/chroot/sarge-ia32/home/usernamenone   
bind0   0

Possibly this is similar for samba shares, and you have to bind-mount
the smb shares explicitely in your fstab as well, something like

/home/username/smb-share   
/var/chroot/sarge-ia32/home/username/smb-sharenonebind   
0   0

(in addition to your already exisiting entry). I did not check this as
I currently don't use samba shares on my amd64, but maybe you could
give it a try.

-- 
Best regards / Mit den besten GrĂ¼ssen
Sven Krahn



Re: smb mounted shares under chroot

2005-06-14 Thread Rathgeb Markus

(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/fsmbfs 
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/fsmbfs 
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/homenonebind0   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

 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]