DD-WRT Samba Custom Configuration – Kong Mod

Here is a little tutorial on how to create a custom configuration for samba. I assume you already have my dd-wrt mod installed. Once you enable Samba under Services->NAS you will see this Form:

smbcustom.png

Click to enlarge

Now to create a custom configuration you can just use the smb.conf which is created once you setup samba with public share. This file is located under /tmp/smb.conf. In the following example I added two users with special shares and changed the location of the public share. In addition to that it is neccessary to create the appropriate directorys on your usb drive ( in this example /jffs/boss, /jffs/cat, /jffs/public) :

 

[global]
server string = Kong
workgroup = Secure
interfaces = br*
bind interfaces only = Yes
map to guest = Bad User
smb passwd file = /var/samba/smbpasswd
private dir = /var/samba
passdb backend = smbpasswd
log file = /var/smbd.log
max log size = 1000
printing = none
load printers = No
usershare allow guests = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY

[Boss]
comment = Boss share
path = /jffs/boss
read only = No
guest ok = No
valid users = Boss
force user = root

[Cat]
comment = Cat share
path = /jffs/cat
read only = No
guest ok = No
valid users = Cat
force user = root

[Public]
comment = Public Share
path = /jffs/public
read only = No
guest ok = Yes
force user = root

Unless you know what you are doing you should keep the default options in global section, but you probably want to change some values like your server string and workgroup . Once you copied your config into the Custom Configuration textbox press Apply Settings. After that you can access your new shares.

Update 5th May 11: Latest builds require the option force user = root since they don’t mount partitions using option user

Update 3rd June 11: Kong builds >= 17140 have a new samba gui, there you can create multiple shares + users without the need of a custom config.

Schreibe einen Kommentar

Post Navigation