LINUX.ORG.RU

samba и security = share


0

0

Обновил дебиан с etch на lenny и получил вот такие грабли:
$ smbclient -U spinal //192.168.0.200/spinal
Password:
Domain=[NET28] OS=[Unix] Server=[Samba 3.2.5]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_WRONG_PASSWORD

Из-под винды нормально заходит через проводник \\192.168.0.200\spinal
с вводом пароля.

testparm:
[global]
workgroup = NET28
server string = %h
interfaces = 192.168.0.200, 192.168.234.200
bind interfaces only = Yes
security = SHARE
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
panic action = /usr/share/samba/panic-action %d
invalid users = root

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0644
browseable = No


Re: samba и security = share

security = share - зло.

Юзай вот так:

security = user
guest ok = yes
map to guest = Bad Password
guest account = юзер_с_доступом_к_homes

zenith ★★★ ()
Ответ на: Re: samba и security = share от zenith

Re: samba и security = share

Спасибо.

Сделал:
security = user
map to guest = Bad Password
и всё заработало

Spinal ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.