История изменений
Исправление leonidko, (текущая версия) :
Я загнался, надо было grep -vE ';|\#|^$' /etc/samba/smb.conf
[global]
workgroup = workgroup
realm = workgroup
server string = samba
printcap name = /dev/null
load printers = no
show add printer wizard = no
log file = /var/log/samba/%m.log
max log size = 50
hosts allow = 192.168.2. 127.0.0.
map to guest = bad user
encrypt passwords = true
idmap uid = 10000-20000
idmap gid = 10000-20000
local master = yes
os level = 33
domain master = yes
preferred master = yes
wins support = yes
dns proxy = no
security = user
dos charset = UTF-8
display charset = UTF-8
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
printable = yes
create mode = 0700
use client driver = yes
[250GB_public]
path = /mnt/250GB/public
comment = shara
guest ok = yes
writeable = yes
[250GB_soft]
path = /mnt/250GB/soft
comment = shara
guest ok = yes
writeable = no
[250GB_shared]
path = /mnt/250GB/shared
comment = shara
guest ok = yes
writeable = yes
[250GB_torrent]
path = /mnt/250GB/torrent
comment = shara
guest ok = yes
writeable = yes
[160GB_shared]
path = /mnt/160GB/shared
comment = shara
guest ok = yes
writeable = yes
[160GB_torrent]
path = /mnt/160GB/torrent
Убирает комментарии и пустые строки.
И что тебе testparm говорит?
Дай сюда выхлоп testparm --verbose
Исходная версия leonidko, :
Я загнался, надо было
[global] workgroup = workgroup realm = workgroup server string = samba printcap name = /dev/null load printers = no show add printer wizard = no log file = /var/log/samba/%m.log max log size = 50 hosts allow = 192.168.2. 127.0.0. map to guest = bad user encrypt passwords = true idmap uid = 10000-20000 idmap gid = 10000-20000 local master = yes os level = 33 domain master = yes preferred master = yes wins support = yes dns proxy = no security = user dos charset = UTF-8 display charset = UTF-8 [homes] comment = Home Directories browseable = no writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes printable = yes create mode = 0700 use client driver = yes [250GB_public] path = /mnt/250GB/public comment = shara guest ok = yes writeable = yes [250GB_soft] path = /mnt/250GB/soft comment = shara guest ok = yes writeable = no [250GB_shared] path = /mnt/250GB/shared comment = shara guest ok = yes writeable = yes [250GB_torrent] path = /mnt/250GB/torrent comment = shara guest ok = yes writeable = yes [160GB_shared] path = /mnt/160GB/shared comment = shara guest ok = yes writeable = yes [160GB_torrent] path = /mnt/160GB/torrent
. Убирает комментарии и пустые строки.