Код: Выделить всё
$ cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = gen1us2k
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[Distr]
comment = Some windows or linux programs
path = /mnt/media/Distr
browseable = yes
read only = yes
guest ok = yes
[Music]
comment = Fuck yeah
path = /mnt/media/Music
browseable = yes
readonly = yes
guest ok = yes
[Books]
comment = Some books maybe, or not?
path = /mnt/media/Books
browseable = yes
readonly = yes
guest ok = yes
[incoming]
comment = Drop your files here, right?
path = /mnt/media/incoming
browseable = yes
readonly = no # Разрешаем запись файла
guest ok = yes