DD-WRT Samba support

4 posts / 0 new
Last post
Kevin Mahoney
Kevin Mahoney's picture
DD-WRT Samba support

I've installed Samba2 on my WNR3500L running the latest DD-WRT version. After some struggle I was able to connect to it from the router itself using the command:

"smbclient -U root //wrouter/share"

 Next I moved on to my Ubuntu desktop. I cannot see the share in  "Network/Windows Network/Home/" so I tried the command above with no success. I then replaced the server name with its IP address:

"smbclient -U root //192.168.1.1/share"

This got me a little further. I received the error:

"Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled"

 For which I found the solution is to add the following lines to /etc/samba/smb.conf

client lanman auth = Yes

lanman auth = Yes

After which I could successfully connect to the share. I edited my /etc/fstab file to automount the share at boot and this was successful as well. 

 

So here is the 5 million dollar question......

Why can't I see the server/share in Nautalis. I also cannot see it from my Windows laptop or directly connect to it from a command line?

 Thanks!

puTTY
puTTY's picture
What does the share look like

What does the share look like in your smb.conf?

I'm guessing it needs to have a line like this in order to show up
browseable = Yes

Also - from windows command line what do you get when you use
net view 192.168.1.1 (or your router's ip)

Kevin Mahoney
Kevin Mahoney's picture
Its not that I cannot see the

Its not that I cannot see the share...I cannot see the entire server for some reason.

Output of net view 192.168.1.1:

-----------------------------------------------------------------------
Shared resources at 192.168.1.1

Samba Optware Server

Share name Type Used as Comment

-------------------------------------------------------------------------------
root Disk Home Directories
share Disk X:
tmp Disk Temporary file space
www Disk HTTP server files
The command completed successfully.

Contents of smb.conf:
----------------------------------------------------------------------------
# Samba config file created using SWAT
# from laptop.HOME (192.168.1.114)
# Date: 2010/02/17 04:32:13

# Global parameters
[global]
workgroup = HOME
netbios name = WROUTER
server string = Samba Optware Server
security = SHARE
encrypt passwords = Yes
log file = /opt/var/log/samba/log.%m
max log size = 50
load printers = No
os level = 50
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
hosts allow = 192.168.1.0/24

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /opt/var/spool/samba
printable = Yes
browseable = No

[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes

[www]
comment = HTTP server files
path = /opt/share/www
read only = No
guest ok = Yes

[share]
path = /mnt
read only = No

-------------------------------------------------------------------------

zzonko
zzonko's picture
How do I access the USB stick

How do I access the USB stick share from the internet? I can FTP in locally but cant figure out how to from my WAN side.

WNR3500l

dd-wrt kong edition