Автор Тема: samba-server. Авторизация и ее отсутствие.  (Прочитано 853 раз)

Оффлайн yurik10

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

Код: (smb.conf) [Выделить]

#======================= 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
« Последнее редактирование: 06.02.2015 10:03:36 от ruslandh »

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Скажите хотя-бы какая версия Самбы у вас установлена.

Оффлайн berkut_174

  • Мастер
  • ***
  • Сообщений: 7 152
« Последнее редактирование: 07.02.2015 18:57:40 от berkut_174 »
Сноси Винду, переходи на Линукс ! :)

Оффлайн yurik10

  • Участник
  • *
  • Сообщений: 45
Скажите хотя-бы какая версия Самбы у вас установлена.
версия 3.5.13

http://forum.altlinux.org/index.php/topic,31396.msg223946.html#msg223946

На p7 также работает.

Спасибо, помогло!!!!