Code
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
gksudo gedit /etc/samba/smb.conf
Найдите эту строку
Code
...
; security = user
...
Замените на следующие строки
Code
security = user
username map = /etc/samba/smbusers
Найдите этот раздел
Code
...
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = no
...
Замените 'no` на 'yes`
Code
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = yes
Сохраните файл
Прочтите #How to add/edit/delete network users
Code
sudo testparm
sudo /etc/init.d/samba restart