хочу организовать простую самба-шару для локальной сети, также хочу чтобы она была «видна» через броадкаст. smb.conf:
[global]
netbiosname = storage
workgroup = group
server string = Shit storage
security = user
hosts allow = 192.168.0. 127.
log file = /var/log/samba/log.%m
max log size = 1000
passdb backend = tdbsam
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = yes
domain master = yes
preferred master = yes
os level = 65
name resolve order = bcast
dns proxy = no
client use spnego = no
client signing = no
client schannel = no
server schannel = no
allow trusted domains = no
obey pam restrictions = yes
enable spoolss = yes
follow symlinks = no
passwd chat timeout = 120
template shell = /dev/null
[storage]
comment = File storage
path = /media/files
public = yes
writable = yes
printable = no
browseable = yes
write list = @files
create mask = 0070
результат работы smbtree -d 10, запущенной на той же машине
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter netbiosname = storage
handle_netbios_name: set global_myname to: STORAGE
doing parameter workgroup = GROUP
doing parameter server string = Shit storage
doing parameter security = user
doing parameter hosts allow = 192.168.0. 127.
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter passdb backend = tdbsam
doing parameter remote announce = 192.168.0.255
doing parameter remote browse sync = 192.168.0.255
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter local master = yes
doing parameter domain master = yes
doing parameter preferred master = yes
doing parameter os level = 65
doing parameter name resolve order = bcast
doing parameter dns proxy = no
doing parameter client use spnego = no
doing parameter client signing = no
doing parameter client schannel = no
doing parameter server schannel = no
doing parameter allow trusted domains = no
doing parameter obey pam restrictions = yes
doing parameter enable spoolss = yes
doing parameter follow symlinks = no
doing parameter passwd chat timeout = 120
doing parameter template shell = /dev/null
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_STANDALONE
Substituting charset 'ANSI_X3.4-1968' for LOCALE
added interface eth0 ip=fe80::16da:e9ff:fe93:e1b0%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=169.254.37.5 bcast=169.254.255.255 netmask=255.255.0.0
added interface eth0 ip=192.168.0.100 bcast=192.168.0.255 netmask=255.255.255.0
Enter root's password:
internal_resolve_name: looking up GROUP#1d (sitename (null))
Opening cache file at /var/cache/samba/gencache.tdb
Opening cache file at /var/cache/samba/gencache_notrans.tdb
name GROUP#1D found.
Connecting to host=169.254.37.5
Running timed event "tevent_req_timedout" 0x7f6b2ae865e0
Connecting to 169.254.37.5 at port 445
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_SNDBUF = 16384
SO_RCVBUF = 16384
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
Substituting charset 'ANSI_X3.4-1968' for LOCALE
Got non-SMB PDU
failed negprot: NT_STATUS_INVALID_NETWORK_RESPONSE
name_status_find: looking up *#00 at 169.254.37.5
namecache_status_fetch: key NBT/*#00.00.169.254.37.5 -> STORAGE
Connecting to host=STORAGE
Running timed event "tevent_req_timedout" 0x7f6b2ae858b0
Connecting to 169.254.37.5 at port 445
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 1
TCP_KEEPCNT = 9
TCP_KEEPIDLE = 7200
TCP_KEEPINTVL = 75
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_SNDBUF = 16384
SO_RCVBUF = 16384
SO_SNDLOWAT = 1
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
TCP_QUICKACK = 1
Got non-SMB PDU
failed negprot: NT_STATUS_INVALID_NETWORK_RESPONSE