View previous topic :: View next topic |
Author |
Message |
brazilian_joe Tux's lil' helper
Joined: 14 Mar 2003 Posts: 99
|
Posted: Thu Oct 21, 2004 1:11 pm Post subject: Samba not listing a network share |
|
|
Hi all,
I am patching up an interim solution while we dont get a vpn server.
I have set up a vpn connection with a remote server, and used smbmount to mount a remote share in my machine:
/etc/fstab:
Code: | //192.168.0.70/share /mnt/smb smbfs noauto,umask=0002,fmask=0770,dmask=0770,uid=tfreire,gid=users,rw,credentials=/etc/samba/credentials |
and I want to use a local samba server to share this to the other mahines.
I have other shares which are working flawlessly, but this one is giving me errors. it was taking a looong time to list the folders, and more often than not the settings do not let me access it at all (kde complains about an invalid argument and sending a bug report)
Thus:
smb.conf:
Code: |
workgroup=SOHO
server string=Gentoo Linux
printcap name=cups
load printers=yes
printing=cups
printer admin=@adm
log file = /var/log/samba3/log.%m
max log size = 50
security=user
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd
socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
dos charset = 850
unix charset = ISO8859-1
wins support= yes
bind interfaces only = yes
interfaces=127.0.0.1,192.168.10.7
[SHARE]
comment= Remote share
path=/mnt/smb
valid users=root,john,mary
public=no
writable=yes
printable=no
write list=root,john,mary
force create mode = 770
create mode = 770
force directory mode = 770
directory mode = 770
|
|
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Thu Oct 21, 2004 1:25 pm Post subject: |
|
|
Since you mount it locally as user tfreire and then share it out again to other usernames, how would you expect to gain access ?
You have to explicitly set the userid to the user you mounted it as to get full access on the local system (and, as a corollary, any systems connected to that).
Much easier solution would be to set up a restricted NFS tunnel between the two servers and SMB share that.
But the delays will still be horrible, since you're not just using VPN (which is sloow) but also re-sharing something via samba.
Windows clients do local directory caching, but the samba server does not AFAIK. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
brazilian_joe Tux's lil' helper
Joined: 14 Mar 2003 Posts: 99
|
Posted: Thu Oct 21, 2004 2:48 pm Post subject: |
|
|
One problem is that I do not have administrator privileges on the other endpoint. I know this is a patch.
But when I list the directory contents (ls -l /mnt/smb) it goes rather fast.
The problem is that acessing it using samba is horribly slow. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|