2011-12-12 01:10:26 +00:00
|
|
|
# Base server settings
|
2008-08-11 14:00:58 +00:00
|
|
|
config samba
|
2011-12-12 01:10:26 +00:00
|
|
|
## Override if desired, defaults to hostname
|
|
|
|
#option 'name' 'OpenWrt'
|
|
|
|
#option 'workgroup' 'OpenWrt'
|
|
|
|
#option 'description' 'Samba on OpenWrt'
|
|
|
|
|
|
|
|
## Expose user home directories, defaults to off
|
|
|
|
option 'homes' '1'
|
|
|
|
|
|
|
|
## Override character set, default is UTF-8
|
|
|
|
option 'charset' 'ISO-8859-1'
|
|
|
|
|
|
|
|
## Override listen interfaces & addresses,
|
|
|
|
## defaults to loopback and lan
|
|
|
|
#list 'interface' 'loopback'
|
|
|
|
#list 'interface' 'lan'
|
|
|
|
#list 'interface' '10.0.0.0/255.255.0.0'
|
|
|
|
#list 'interface' 'eth0'
|
|
|
|
|
|
|
|
# Declare a share on /tmp
|
2008-08-11 14:00:58 +00:00
|
|
|
config sambashare
|
|
|
|
option 'name' 'tmp'
|
|
|
|
option 'path' '/tmp'
|
|
|
|
option 'read_only' 'no'
|
|
|
|
option 'guest_ok' 'no'
|
2011-12-12 01:10:26 +00:00
|
|
|
option 'create_mask' '0700'
|
2008-08-11 14:00:58 +00:00
|
|
|
option 'dir_mask' '0700'
|
|
|
|
#option 'users' 'abc'
|