LINUX.ORG.RU
ФорумAdmin

Samba не расшаривает компы в рабочей группе


0

0

если явно прописать адрес то все нормально но в гноме или кедах не видно компьютеров в рабочей группе. просто пусто, настройки smb.conf практически ве по умолчанию только рабочая группа заменена и уровень безопасности заменил с user на share.

по умолчанию в samba.conf стоит public=no для всех папок кроме public. Это обозначает, что ниодин каталог не будет видет в обозревателе. Исправь те каталоги, что хочешь, чтобы смотрели в сеть на yes. Все должно увидется.

alex_zh
()
Ответ на: комментарий от raven-den

да причин может быть туева хуча, начиная от файрвола до фазы луны
для начала проверьте наличие master browser-а -
nmblookup -M Your_workgroup
(если есть винс сервер, то можно спросить у него -
nmblookup -U ip_wins-a -R 'Your_workgroup#1B'
wins server = ip задать в smb.conf для регистрации на нем)
Если MB существует, проверьте список на нем -
smbclient -L //ip_mb
Должен выдать список всех зарегестрировавшихся на нем машин.
Если все ок, попроверяйте у себя на компе все (файрвол, ps ax | grep nmbd как написали выше и т.п.)
Если не совсем ок, можете попробовать для теста или на постоянку mb на свой комп (можете получить по шапке если кто-нибудь контролирует) опции domain master = yes, preferred master = yes и os level в smb.conf.

a_andry
()
Ответ на: комментарий от a_andry

Стоит обычная дмашняя сетка три компа на двух маздай. все видно без каких либо настроек. какого либо дополнительного фаииииир вола не стоит

raven-den
() автор топика
Ответ на: комментарий от raven-den

пропиши на виндузятных машинах в файле hosts находящейся в папке %systemroot%\system32\drivers\

строчки 192.168.1.1 win1 192.168.1.2 win1 192.168.1.3 linux

и все получится. либо включай nmb вместе с smb кто то в сети должен заниматся преобразованием имен, кроме как нетбью тубю. и вообще, столило бы smb.conf показать :-)

alex_zh
()
Ответ на: комментарий от alex_zh

вот log samba [2008/02/07 19:27:00, 0] smbd/server.c:main(847) smbd version 3.0.23b started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/02/07 19:27:00, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - В соединении отказано [2008/02/07 19:27:00, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - В соединении отказано [2008/02/07 19:29:42, 0] smbd/server.c:main(847) smbd version 3.0.23b started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/02/07 19:29:43, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 19:29:43, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 19:45:50, 0] smbd/server.c:main(847) smbd version 3.0.23b started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/02/07 19:45:50, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 19:45:50, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 20:07:01, 0] smbd/server.c:main(847) smbd version 3.0.23b started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/02/07 20:07:02, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 20:07:03, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 20:36:20, 0] smbd/server.c:main(847) smbd version 3.0.23b started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/02/07 20:36:21, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 20:36:21, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 22:10:56, 0] smbd/server.c:main(847) smbd version 3.0.23b started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/02/07 22:10:57, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused [2008/02/07 22:10:58, 0] printing/print_cups.c:cups_cache_reload(85) Unable to connect to CUPS server localhost - Connection refused

принтеры мне вообще не нужны, и не когда не понадобятся.

raven-den
() автор топика
Ответ на: комментарий от raven-den

[global]


workgroup = mshome
server string = Samba Server %v
; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s

log file = /var/log/samba/%m.log


max log size = 50000


map to guest = bad user
encrypt passwords = yes

# The following are needed to allow password changing from Windows to
# also update the Linux system password.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
# You either need to setup a passwd program and passwd chat, or
# enable pam password change
; pam password change = yes
# passwd program = /usr/bin/passwd '%u'
; passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n ;*passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
# include = /etc/samba/smb.conf.%m

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
# logon script = %m.bat
# run a specific logon batch file per username
# logon script = %u.bat

# Where to store roaming profiles for WinNT and Win2k
# %L substitutes for this servers netbios name, %u is username
# You must uncomment the [Profiles] share below
# logon path = \\%L\Profiles\%u

# Where to store roaming profiles for Win9x. Be careful with this as it also
# impacts where Win2k finds it's /HOME share
# logon home = \\%L\%u\.profile


# The add user script is used by a domain member to add local user accounts
# that have been authenticated by the domain controller, or when adding
# users via the Windows NT Tools (ie User Manager for Domains).

# Scripts for file (passwd, smbpasswd) backend:
# add user script = /usr/sbin/useradd -s /bin/false '%u'
# delete user script = /usr/sbin/userdel '%s'
# add user to group script = /usr/bin/gpasswd -a '%u' '%g'
# delete user from group script = /usr/bin/gpasswd -d '%u' '%g'
# set primary group script = /usr/sbin/usermod -g '%g' '%u'
# add group script = /usr/sbin/groupadd %g && getent group '%g'|awk -F: '{print $3}'
# delete group script = /usr/sbin/groupdel '%g'

# Scripts for LDAP backend (assumes nss_ldap is in use on the domain controller,
# and needs configuration in smbldap_conf.pm
# add user script = /usr/sbin/smbldap-useradd -m '%u'
# delete user script = /usr/sbin/smbldap-userdel '%u'
# add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
# delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
# set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
# add group script = /usr/sbin/smbldap-groupadd '%g' && /usr/sbin/smbldap-groupshow %g|awk '/^gidNumber:/ {print $2}'
# delete group script = /usr/sbin/smbldap-groupdel '%g'


# The add machine script is use by a samba server configured as a domain
# controller to add local machine accounts when adding machines to the domain.
# The script must work from the command line when replacing the macros,
# or the operation will fail. Check that groups exist if forcing a group.
# Script for domain controller for adding machines:
# add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M '%u'
# Script for domain controller with LDAP backend for adding machines (please
# configure in /etc/samba/smbldap_conf.pm first):
# add machine script = /usr/sbin/smbldap-useradd -w -d /dev/null -c 'Machine Account' -s /bin/false '%u'

# Domain groups:
# Domain groups are now configured by using the 'net groupmap' tool

# Enable priveleges, ie allowing members of Domain Admins to join machines
# to the domain
# enable privileges = yes

# Samba Password Database configuration:
# Samba now has runtime-configurable password database backends. Multiple
# passdb backends may be used, but users will only be added to the first one
# Default:
# passdb backend = smbpasswd guest
# TDB backen with fallback to smbpasswd and guest
# passdb backend = tdbsam smbpasswd guest
# LDAP with fallback to smbpasswd guest
# Enable SSL by using an ldaps url, or enable tls with 'ldap ssl' below.
# passdb backend = ldapsam:ldaps://ldap.mydomain.com smbpasswd guest
# Use the samba2 LDAP schema:
# passdb backend = ldapsam_compat:ldaps://ldap.mydomain.com smbpasswd guest

# Idmap settings (set idmap uid and idmap gid above):
# Idmap backend to use:
# idmap backend = ldap:ldap://ldap.mydomain.com

# LDAP configuration for Domain Controlling:
# The account (dn) that samba uses to access the LDAP server
# This account needs to have write access to the LDAP tree
# You will need to give samba the password for this dn, by
# running 'smbpasswd -w mypassword'
# ldap admin dn = cn=root,dc=mydomain,dc=com
# ldap ssl = start_tls
# start_tls should run on 389, but samba defaults incorrectly to 636
# ldap port = 389
# ldap suffix = dc=mydomain,dc=com
# Seperate suffixes are available for machines, users, groups, and idmap, if
# ldap suffix appears first, it is appended to the specific suffix.
# Example for a unix-ish directory layout:
# ldap machine suffix = ou=Hosts
# ldap user suffix = ou=People
# ldap group suffix = ou=Group
# ldap idmap suffix = ou=Idmap
# Example for AD-ish layout:
# ldap machine suffix = cn=Computers
# ldap user suffix = cn=Users
# ldap group suffix = cn=Groups
# ldap idmap suffix = cn=Idmap


# 7. Name Resolution Options:
# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
# name resolve order = wins lmhosts bcast

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