samba отваливается
Установил samb'у ,машина видна в сети под именем - [ Samba 3.0.28 (St60) ], файлы туда-сюда копируются по сети, но через некоторое время самба машина пропадает из локалки, но пинг есть... в чем может быть проблема?
конфиг самбы
[global]
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = tuc
# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
netbios name = St60
# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# 4. Security and Domain Membership Options:
hosts allow = 192.168.0. 127.
# Allow users to map to guest:
map to guest = bad user
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication, thus
# members of a domain do not need one.
encrypt passwords = yes
# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
local master = no
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
domain master = no
# 6. Domain Control Options:
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations or Primary Domain Controller for WinNT and Win2k
domain logons = no
# 7. Name Resolution Options:
name resolve order = host lmhosts bcast
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
# Default case is normally upper case for all DOS files
default case = lower
# Enabling internationalization:
dos charset = cp866
unix charset = UTF-8
display charset = UTF-8
#============================ Share Definitions ==============================
#[homes]
# comment = Home Directories
# browseable = no
# writable = yes
[share]
; comment = Mary's and Fred's stuff
path = /mnt/share/backup
valid users = rff gtf root
public = yes
writable = yes
printable = no
create mask = 0777
- Для комментирования войдите или зарегистрируйтесь
Узнайте про
Узнайте про параметр log level и кидайте сюда кусок лога. :)
---
Делай, что должен, и будь, что будет.
лог
cat /var/log/samba/log.smbd
[2008/10/02 01:07:32, 0] smbd/server.c:main(944)
smbd version 3.0.28a started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/10/02 01:07:33, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/02 01:07:33, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/02 01:07:33, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(241)
startsmbfilepwent_internal: file /var/lib/samba/private/smbpasswd did not exist. File successfully created.
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
[2008/10/02 01:07:33, 1] lib/account_pol.c:account_policy_get(286)
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
[2008/10/02 01:15:46, 0] smbd/server.c:main(944)
smbd version 3.0.28a started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/10/02 01:15:47, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/02 01:15:47, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:12:52, 0] smbd/server.c:main(944)
smbd version 3.0.28a started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/10/10 17:12:53, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:12:53, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:17:28, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:17:28, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:30:55, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:30:55, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:44:14, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:44:14, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:44:14, 0] lib/util_sock.c:get_peer_addr(1224)
getpeername failed. Error was Transport endpoint is not connected
[2008/10/10 17:44:14, 0] lib/util_sock.c:get_peer_addr(1224)
getpeername failed. Error was Transport endpoint is not connected
[2008/10/10 17:57:52, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 17:57:52, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 18:22:24, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 18:22:24, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 18:35:39, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 18:35:39, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 18:51:54, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
[2008/10/10 18:51:54, 0] printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Connection refused
Лог похож на
Лог похож на либо контроллер домена (что не так, судя по конфигу), либо на отваливающуюся карточку.
Попробуйте железо поменяйте - поможет/нет?
Уж больно похоже...
---
Делай, что должен, и будь, что будет.
Интересная
Интересная строчка.
startsmbfilepwent_internal: file /var/lib/samba/private/smbpasswd did not exist. File successfully created.
И часто оно у вас пересоздает /var/lib/samba/private/smbpasswd?
Это как правило появляется когда самба с купсом собрана а купс не поднят.
Unable to connect to CUPS server localhost:631 - Connection refused
У кого что-то похожее
У кого что-то похожее происходит, проверьте лог самбы, если там есть такие строчки
tdb(/var/lib/samba/secrets.tdb): transaction_read: failed at off=1650748462 len=24
то нужно удалить этот secrets.tdb и ребутнуть smdb