|
- samba - это простой способ сделать доступное файлохранилище в основном для локальной сети
-
мой конфиг содержит два каталога для хранения файлов пользователей,
под каждый из которых отведён отдельный жёсткий диск
- конфиг:
[global]
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
workgroup = adm_group
encrypt passwords = true
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
map to guest = bad user
syslog = 0
max log size = 1000
log file = /var/log/samba/log.%m
obey pam restrictions = yes
panic action = /usr/share/samba/panic-action %d
pam password change = yes
dns proxy = no
server string = %h server (Samba, Ubuntu)
usershare allow guests = yes
domain master = no
unix password sync = yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
guest ok = no
[volume_2]
directory mask = 0700
comment = Volume 2 in 1Tb
path = /media/volume_2
read only = no
guest ok = no
create mask = 0600
[volume_1]
directory mask = 0700
comment = Volume 1 in 1Tb
path = /media/volume_1
read only = no
guest ok = no
create mask = 0600
[printers]
browseable = no
comment = All Printers
printable = yes
path = /var/spool/samba
guest ok = no
create mask = 0700
|