Все папки доступны просто так.
security = share
Как мне запретить доступ к 1 папке и сделать к ней доступ только по паролю не меняя на security = user
Нужно чтобы выскакивало окошко: Имя пароль.
Это сделать удалось, а вот войти никак. Что ни читал, ничего не помогает.
А в security = user Работает...
Код: Выделить всё
#======================= Global Settings =====================================
[global]
log file = /var/log/samba/samba.%m
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts
load printers = no
smb ports = 139
wins support = yes
wins proxy = yes
netbios name = Storage
server string = ""
printing = CUPS
printcap name = cups
local master = yes
workgroup = DSNET
security = share
preferred master = yes
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
unix charset = cp1251
dos charset = cp1251
display charset = cp1251
interfaces = eth0
[Projects]
comment = Only Andrey!
path = /storage0/private/andrey/
public = yes
only guest = no
guest ok = no
writable = yes
valid users = ally, root
[PCs]
comment = PC Directories
path = /storage0/private/pc/%m
public = yes
only guest = yes
guest ok = yes
printable = no
writable = yes
[Public]
comment = Absolutely public
path = /storage0/public/all/
public = yes
only guest = yes
guest ok = yes
writable = yes
printable = no
[Private]
comment = Only LAN accesable
path = /storage0/public/lan/
public = yes
only guest = yes
guest ok = yes
writable = yes
printable = no