Помогите решить небольшой затык. Сделал настройку с нуля. Подключен Хард, стоит mc. Все монтируется, есть своп. Раньша стояла обычная самба, но так как у меня Виста (м.. её), из-за совместимости поставил самба 2. И вот здесь у меня проблемы. Встала она вроде нормально, доступ к диску есть и с ноута и с десктопа, но доступ только к \\WL-500GP\share, если так \\WL-500GP\share$ то требут логин и пароль. Когда стояла встоенная samba, Mam(on) помог настроить путем ввода следующих команд, но сейчас это не срабатывает:
[root@router etc]$ smbpasswd -a root
load_unicode_map: filename /usr/codepages/unicode_map.KOI8-R does not exist.
New SMB password:
Retype new SMB password:
startsmbfilepwent_internal: unable to open file /etc/smbpasswd. Error was No such file or directory
Added user root.
[root@router etc]$
Samba 2 настраивал через SWAT.
Настройки /opt/etc/samba/smb.conf
Code:
[global]
interfaces = br0
bind interfaces only = no
client code page = 866
workgroup = HOMENET
netbios name = Asus_WL500GP
server string = Asus_WL500GP
security = SHARE
smb passwd file = /etc/smbpasswd
log file = /opt/var/log/samba/log.%m
max log size = 50
load printers = No
character set = 1251
os level = 255
dns proxy = No
wins support = Yes
time server = no
local master = yes
domain master = yes
preferred master = yes
domain logons = no
guest account = admin
hosts allow = 192.168.1.
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
[share]
comment = Home Directories
path = /tmp/harddisk/ftp_pub
guest only = yes
guest ok = yes
comment = share
force user = admin
[share$]
path = /
comment = admin
guest ok = no
writable = yes
force user = admin
browseable = no
valid users = admin
username = admin
allow from = 192.168.1.
[printers]
comment = All Printers
path = /opt/var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes
[www]
comment = HTTP server files
path = /opt/share/www
read only = No
guest ok = Yes
Вот логи samba:
из /opt/var/log/samba
Code:
[2007/11/03 11:51:22, 0] source/printing/pcap.c:pcap_printername_ok(289)
Unable to open printcap file /etc/printcap for read!
[2007/11/03 11:51:22, 0] source/smbd/service.c:make_connection(252)
mega (192.168.1.2) couldn't find service boris
[2007/11/03 11:51:29, 0] source/smbd/dfree.c:disk_free(140)
WARNING: dfree is broken on this system
[2007/11/03 12:05:54, 0] source/printing/pcap.c:pcap_printername_ok(289)
Unable to open printcap file /etc/printcap for read!
[2007/11/03 12:05:54, 0] source/smbd/service.c:make_connection(252)
mega (192.168.1.2) couldn't find service share
[2007/11/03 12:05:54, 0] source/printing/pcap.c:pcap_printername_ok(289)
Unable to open printcap file /etc/printcap for read!
[2007/11/03 12:05:54, 0] source/smbd/service.c:make_connection(252)
mega (192.168.1.2) couldn't find service share
[2007/11/03 12:05:54, 0] source/printing/pcap.c:pcap_printername_ok(289)
Unable to open printcap file /etc/printcap for read!
[2007/11/03 12:05:54, 0] source/smbd/service.c:make_connection(252)
mega (192.168.1.2) couldn't find service share
[2007/11/03 12:05:54, 0] source/printing/pcap.c:pcap_printername_ok(289)
Unable to open printcap file /etc/printcap for read!
[2007/11/03 12:05:54, 0] source/smbd/service.c:make_connection(252)
mega (192.168.1.2) couldn't find service share
а это из /opt/var/log:
Code:
[2007/11/03 22:45:17, 0] source/smbd/service.c:make_connection(252)
mega (192.168.1.2) couldn't find service share;
[2007/11/03 22:45:17, 0] source/smbd/service.c:make_connection(252)
mega (192.168.1.2) couldn't find service share;
[2007/11/03 22:45:21, 2] source/smbd/reply.c:reply_sesssetup_and_X(1007)
Defaulting to Lanman password for boris
[2007/11/03 22:45:21, 2] source/smbd/service.c:make_connection(331)
Invalid username/password for share$ []
[2007/11/03 22:45:21, 2] source/smbd/reply.c:reply_sesssetup_and_X(1007)
Defaulting to Lanman password for boris
[2007/11/03 22:45:21, 2] source/smbd/service.c:make_connection(331)
Invalid username/password for share$ []
[2007/11/03 22:45:21, 2] source/smbd/service.c:make_connection(331)
Invalid username/password for share$ []
[2007/11/03 22:45:21, 2] source/smbd/service.c:make_connection(331)
Invalid username/password for share$ []
[2007/11/03 22:45:22, 1] source/smbd/service.c:close_cnum(677)
mega (192.168.1.2) closed connection to service share
[2007/11/03 22:45:54, 2] source/smbd/server.c:exit_server(511)
Closing connections
[2007/11/03 22:51:11, 2] source/smbd/server.c:exit_server(511)
Closing connections
Помогите с настройкой конфигов.