Пример конфигурации samba
Демон Samba позволяет общаться с windows сетью, то есть работать с расшареными файлами.
Данный конфиг позволяет расшарить файлы на Linux машине и иметь доступ к ним с windows машин вашей сети.
/etc/samba/smb.conf
#======================= Global Settings =======================
[global]
netbios name = ИМЯ_КОМПЬЮТЕРА
workgroup = РАБОЧАЯ_ГРУППА
server string = ПОДПИСЬ_КОМПЬЮТЕРА
wins support = yes
dns proxy = yes
name resolve order = host wins bcast
interfaces = eth0
domain master = no
local master = no
preferred master = no
os level = 1
log file = /var/log/samba/log.%I
max log size = 512
syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
obey pam restrictions = yes
guest account = nobody
invalid users = root
load printers = no
socket options = TCP_NODELAY
#====================== Share Definitions ======================
# Эти настройки будут по умолчанию для всех расшареных папок.
available = yes
browseable = yes
public = yes
writable = no
guest ok = yes
guest only = yes
vfs object = full_audit
full_audit:prefix = %m|%I|%U|%u|%a|%S
# all == opendir open read write sendfile rename mkdir rmdir unlink...
# ...connect stat chdir disconnect readdir telldir closedir...
# ...kernel_flock getlock pread close...
full_audit:success = connect disconnect open
full_audit:failure = opendir open pread connect
#====================== My share folders =======================
# Ваши опубликованные ресурсы
[Install]
path = /media/disk/Distrib
[Images]
path = /media/disk/Images
[Music]
path = /media/disk/Music
[inc$]
path = /media/disk/inc$
writable = yes