Доброе утро. Возникла необходимость настроить самба-сервер таким образом, чтобы к одному ресурсу на самбе необходима была авторизация, а к другому нет. И чтобы все это работало одновременно. Насколько я понял из поиска, надо поменять режим security, для того, чтобы настроить авторизацию(либо ее отсутствие). Но также было указано, что гостевой режим(guest ok) несовместим с security=user. К сожалению, ссылку, где я это прочитал, дать не могу, т.к. браузер все очищает при выходе(моя вина, сам так настроил

). Помогите, пожалуйста!!!
#======================= Global Settings =====================================
[global]
# ----------------------- User Shares Options -------------------------
usershare path = /var/lib/samba/usershares
usershare max shares = 100
usershare allow guests = yes
usershare owner only = yes
workgroup = WORKGROUP
server string = Samba Server YURIK
netbios name = YURIK_SERVER
interfaces = lo eth0 eth1
#hosts allow = 127. 10.1.0. 10.14.28.
# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50
security = user
passdb backend = tdbsam
# the login script name depends on the machine name
; logon script = %m.bat
# the login script name depends on the unix user used
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
# disables profiles support by specifing an empty path
; logon path =
load printers = yes
cups options = raw
; printcap name = /etc/printcap
#obtain list of printers automatically on SystemV
; printcap name = lpstat
; printing = cups
#============================ Share Definitions ==============================
#last
[pol]
comment = last pol
browseable = yes
writable = no
write list = root
path = /var/ftp/
#xray
[DB]
comment = xray
browseable = yes
writeble = no
# write list = root
path = /var/ftpxray
[homes]
; comment = Home Directories
; browseable = no
; writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /var/lib/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff