Всем привет. Пытаюсь настроить доступ к папкам через связку OpenVPN + samba. До меня, samba была интегрирована с AD. Мне нужно настроить доступ через обычный логин-пароль. Проблема в том, что к существующим папкам не могу подключиться, запрашивает логин-пароль но не подключается. Создал новую папку, на ней все работает. samba.conf (закоментил предыдущие настройки)
#======================= Global Settings =====================================
[global]
workgroup = OVAPRESS
server string = test file server
guest account = testuser
# --------------------------- Logging Options -----------------------------
log level = 3
logs split per machine
log file = /var/log/samba/%m.log
max 50KB per log file, then rotate
max log size = 50
# ----------------------- Domain Members Options ------------------------
#
security = user
#winbind enum users = Yes
#winbind enum groups = Yes
#winbind use default domain = Yes
#winbind nested groups = Yes
#idmap uid = 600-20000
#idmap gid = 600-20000
#allow trusted domains = Yes
#server signing = mandatory
#client signing = mandatory
#client use spnego = Yes
#ntlm auth = Yes
#lanman auth = No
#socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
#vfs objects = acl_xattr
#map acl inherit = Yes
#store dos attributes = Yes
# client min protocol = SMB2
# client max protocol = SMB3
server multi channel support = yes
aio read size = 1
aio write size = 1
# ----------------------- Browser Control Options ----------------------------
preferred master = no
# --------------------------- Printing Options -----------------------------
load printers = no
[old_folder]
public = yes
path = /data/old_folder1
browseable = Yes
guest ok = Yes
writeable = Yes
[old_folder2]
path = /data/old_folder2
public = no
guest ok = no
writeable = no
valid users = testuser
write list = testuser
read only = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
inherit owner = yes
[new_folder]
public = no
path = /data/new_folder
guest ok = no
writeable = no
valid users = testuser
write list = testuser
read only = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
inherit owner = yes
В new_folder заходит и можно работать, но не хочет заходить в old_folder и old_folder2. Памагите