Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba not listing a network share
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
brazilian_joe
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 99

PostPosted: Thu Oct 21, 2004 1:11 pm    Post subject: Samba not listing a network share Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Oct 21, 2004 1:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
brazilian_joe
Tux's lil' helper
Tux's lil' helper


Joined: 14 Mar 2003
Posts: 99

PostPosted: Thu Oct 21, 2004 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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