мне нужно со своей Ubuntu 10.04 видеть в сети компы с виндой и юзать их ресурсы. имена не определяются.
уже пару дней гуглю разные сообщения команд о провале резольва - везде часные случаи которые решены. ни один мне не подошел. на каналах просто игнорируют вопросы по самбе потому что она всех уже зае...
так что эту тему можно считать криком души.
-------------------------------------------------------------------------------------------------
симптомы
проверил с виндовой машины - все пингуемые пк онлайн
Nautilus -> Сеть Windows
Не удалось подключить местоположение
Не удалось получить список доступных на сервере ресурсов
с инетом все нормально
$ host mail.ru
mail.ru has address 94.100.191.201...
единственный пк который определяется
$ host nas4
... has address 192.168.42.221
$ host nas11
Host nas11 not found: 3(NXDOMAIN)
$ dig nas4
; <<>> DiG 9.7.0-P1 <<>> nas4
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37013
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;nas4. IN A
;; Query time: 0 msec
;; SERVER: 192.168.42.250#53(192.168.42.250)
;; WHEN: Tue Mar 1 09:55:27 2011
;; MSG SIZE rcvd: 22
-------------------------------------------------------------------------------------------------
вопросы
#как с этим жить?
какова полная цепочка взаимодействий программ (модулей, библиотек) при попытке получения IP по имени?
чтобы пройти по этой цепочке и отследить где ж косяк
при установке убунты я не вводил никаких параметров, все для сети прописалось автоматически
можно запустить тот же процесс на установленной операционке?
-------------------------------------------------------------------------------------------------
что пробовал
настраивать как в предпоследнем посте
http://ubuntuforums.org/archive/index.php/t-826938.htmlнастраивать по ману
http://ubuntu.swerdna.org/ubulanprimer.htmlмногочисленные варианты советов по правке конфигов (противоречащие друг другу)
apt-get purge samba, apt-get install samba и другие проги
-------------------------------------------------------------------------------------------------
конфиги
/etc/nsswitch.conf
passwd: compat
group: compat
shadow: compat
hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
networks: files bcast lmhosts dns
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
resolv.conf
nameserver 192.168.42.250
nameserver 188.143.55.254
nameserver 188.143.54.254
domain otdel.kantora.ru
search otdel.kantora.ru
smb.conf
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
netbios name = HC
server string =
name resolve order = bcast host lmhosts wins
map to guest = Bad User
os level = 33
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
local master = yes
preferred master = no
#======================= Share Definitions =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
; comment = Home Directories
; browseable = no
# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
; read only = yes
# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0700
# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0700
# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# This might need tweaking when using external authentication schemes
; valid users = %S
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
; share modes = no
# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin
# A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server's CD-ROM
; read only = yes
; locking = no
; path = /cdrom
; guest ok = yes
# The next two parameters show how to auto-mount a CD-ROM when the
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
#
# /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
# is mounted on /cdrom
#
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
-------------------------------------------------------------------------------------------------
что установлено
smbd Version 3.4.7
$ aptitude samba
p dpsyco-samba - Automate administration of
p ebox-samba - eBox - File Sharing
p egroupware-sambaa - web-based groupware suite
i gadmin-samba - инструмент настройки samba
p gadmin-samba-dbg - GTK+ configuration tool fo
p libsamba-hostconf - Samba host configuration l
p libsamba-hostconf - Samba host configuration l
p libsamba-util-dev - Samba utility function lib
p libsamba-util0 - Samba utility function lib
idA python-samba - Python bindings for Samba
v python2.6-samba -
i samba - SMB/CIFS file, print, and
v samba-client -
i A samba-common - common files used by both
i A samba-common-bin - common files used by both
p samba-dbg - Samba debugging symbols
idA samba-doc - Samba documentation
p samba-doc-pdf - Samba documentation in PDF
idA samba-ldb-tools - LDAP-like embedded databas
p samba-tools - Samba testing utilities
p samba4 - LanManager-like file serve
pB samba4-clients - client utilities from Samb
pi samba4-common-bin - Samba 4 common files used
p samba4-dev - tools for extending Samba
p samba4-testsuite - test suite from Samba 4
p system-config-sam - GUI for managing samba sha
winbindd Version 3.4.7
DiG 9.7.0-P1
Nautilus 2.30.1
$ aptitude dhcp
p autodns-dhcp - Automatic DNS updates for
p dhcp-client - клиент DHCP (переходный па
p dhcp-helper - ретранслятор DHCP-запросов
i dhcp-probe - network dhcp or bootp serv
i dhcp3-client - клиент DHCP
i dhcp3-common - общие файлы для всех пакет
p dhcp3-dev - API for accessing and modi
p dhcp3-relay - Служба ретрансляции DHCP
p dhcp3-server - служба DHCP - автоматическ
p dhcp3-server-ldap - сервер DHCP, позволяющий и
i dhcpcd - DHCP client for automatica
p dhcpdump - Parse DHCP packets from tc
p dhcping - DHCP Daemon Ping Program
p ebox-dhcp - eBox - DHCP Service
p gadmin-dhcpd - GTK+ configuration tool fo
p gadmin-dhcpd-dbg - GTK+ configuration tool fo
p libnet-dhcp-perl - Interface for handling DHC
p libtext-dhcplease - Perl module to parse DHCP
p udhcpc - very small DHCP client
p udhcpd - very small DHCP server
p wide-dhcpv6-clien - DHCPv6 client for automati
p wide-dhcpv6-relay - DHCPv6 relay for automatic
p wide-dhcpv6-serve - DHCPv6 server for automati