PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba funzt net :(



pitcher166
25.09.05, 15:53
hey,
musste mein homeserver neu aufsetzen und hab suse nun durch debian ersetzt ... habe jetzt speziell das Problem, dass samba nicht funzt und ich weiss nicht woran das liegt ... vielleicht kann mir einer sagen wie ich am besten vorgehe beim einrichten und was der windoof-rechner mitbringen muss damit er bei debian drauf kommt.

-----------------------------------------------------
[global]
log file = /var/log/samba/log.%m
socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY
unix extensions = Yes
encrypt passwords = yes
netbios name = meinservername
server string = %h server (Samba %v)
workgroup = meinegruppe
syslog = 1
security = user
max log size = 1000
# Vorgaben fuer Freigaben
writeable = yes
directory mode = 775
-----------------------------------------------
das sind meine jetzigen einstellungen in der smb.conf
am ende sollte es so gehen dass sich der windows-rechner mit benutzername und passwort authentifizieren soll um drauf zugriff zu haben, aber das funzt net.
mit dem befehl smbpasswd -a user1 ... hab ich 2 user hinzugefügt und das hat auch geklappt.
bei den angegebenen freigaben hab ich nur path gesetzt.
aber smbstatus sagt mir:
--------------
sessionid.tdb not initialised
/var/run/samba/connections.tdb not initialised
This is normal if an SMB client has never connected to your server.
/var/run/samba/locking.tdb not initialised
This is normal if an SMB client has never connected to your server.
--------------
was muss ich tun um eine gültige sessionid.tdb zu bekommen???
die iptables-firewall is aus und die rechner können sich gegenseitig pingen.

hat jemand nen tipp für mich

thx

pitcher

emba
25.09.05, 16:46
die fehlermeldungen sind normal, wenn samba zum ersten mal gestartet wird.
erhoehe bitte das log level auf 3 und poste den output, wenn sich ein client connected. was genau kommt fuer eine fehlermeldung am client? kanns du
lokal mit cifs mounten?

greez

pitcher166
25.09.05, 17:05
output vom smbd:
-----------------------
[2005/09/25 15:53:00, 0] smbd/server.c:main(798)
smbd version 3.0.14a-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/09/25 15:53:00, 2] param/loadparm.c:do_section(3434)
Processing section "[Freigabe1]"
[2005/09/25 15:53:00, 2] param/loadparm.c:do_section(3434)
Processing section "[Freigabe2]"
[2005/09/25 15:53:00, 2] param/loadparm.c:do_section(3434)
Processing section "[Freigabe3]"
[2005/09/25 15:53:00, 3] param/loadparm.c:lp_add_ipc(2409)
adding IPC service
[2005/09/25 15:53:00, 3] param/loadparm.c:lp_add_ipc(2409)
adding IPC service
[2005/09/25 15:53:01, 3] printing/pcap.c:pcap_cache_reload(114)
reloading printcap cache
[2005/09/25 15:53:01, 3] printing/pcap.c:pcap_cache_reload(213)
reload status: ok
[2005/09/25 15:53:01, 2] lib/interface.c:add_interface(81)
added interface ip=192.168.0.6 bcast=192.168.0.255 nmask=255.255.255.0
[2005/09/25 15:53:01, 3] smbd/sec_ctx.c:push_sec_ctx(256)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2005/09/25 15:53:01, 3] smbd/uid.c:push_conn_ctx(365)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2005/09/25 15:53:01, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2005/09/25 15:53:01, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/09/25 15:53:01, 1] auth/auth_util.c:make_server_info_sam(840)
User nobody in passdb, but getpwnam() fails!
-----------------------------------------

Output von nmbd:
----------------------------------------
[2005/09/25 15:59:56, 0] nmbd/nmbd.c:main(668)
Netbios nameserver version 3.0.14a-Debian started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2005/09/25 15:59:56, 3] nmbd/nmbd.c:reload_nmbd_services(297)
services not loaded
[2005/09/25 15:59:56, 2] nmbd/nmbd.c:main(692)
Becoming a daemon.
[2005/09/25 15:59:56, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2005/09/25 15:59:56, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2005/09/25 15:59:56, 3] nmbd/nmbd.c:main(724)
Opening sockets 137
[2005/09/25 15:59:56, 3] nmbd/nmbd.c:open_sockets(591)
open_sockets: Broadcast sockets opened.
[2005/09/25 15:59:56, 2] lib/interface.c:add_interface(81)
added interface ip=192.168.0.6 bcast=192.168.0.255 nmask=255.255.255.0
[2005/09/25 15:59:56, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
making subnet name:192.168.0.6 Broadcast address:192.168.0.255 Subnet mask:255.255.255.0
[2005/09/25 15:59:56, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2005/09/25 15:59:56, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2005/09/25 15:59:56, 2] nmbd/nmbd_lmhosts.c:load_lmhosts_file(41)
load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
[2005/09/25 15:59:56, 3] nmbd/nmbd.c:main(743)
Loaded hosts file /etc/samba/lmhosts
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name *<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet 192.168.0.6
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name *<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet 192.168.0.6
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet 192.168.0.6
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet 192.168.0.6
[2005/09/25 15:59:56, 3] nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159 )
create_server_on_workgroup: Created server entry PITCHSERVER of type 40009a03 (pitchserver server (Samba 3.0.14a-Debian)) on
workgroup WORKGROUP.
[2005/09/25 15:59:56, 3] nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(26 7)
initiate_myworkgroup_startup: Added server name entry PITCHSERVER on subnet 192.168.0.6
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name *<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name *<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
log.nmbd: unmodified: line 1
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name PITCHSERVER<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name PITCHSERVER<03> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name PITCHSERVER<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 192.168.0.6 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 192.168.0.6 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name *<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name *<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_
SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_
SUBNET
[2005/09/25 15:59:56, 3] nmbd/nmbd_sendannounce.c:send_host_announcement(208)
send_host_announcement: type 9a03 for host PITCHSERVER on subnet 192.168.0.6 for workgroup WORKGROUP
[2005/09/25 16:00:00, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name PITCHSERVER<20> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet 192.168.0.6
[2005/09/25 16:00:00, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name PITCHSERVER<03> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet 192.168.0.6
[2005/09/25 16:00:00, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name PITCHSERVER<00> with first IP 192.168.0.6 ttl=0 nb_flags= 0 to subnet 192.168.0.6
[2005/09/25 16:00:00, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 192.168.0.6 ttl=0 nb_flags=80 to subnet 192.168.0.6
[2005/09/25 16:00:00, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 192.168.0.6 ttl=0 nb_flags=80 to subnet 192.168.0.6
[2005/09/25 16:00:20, 3] nmbd/nmbd_incomingrequests.c:process_node_status_reques t(323)
process_node_status_request: status request for name *<00> from IP 192.168.0.3 on subnet UNICAST_SUBNET.
[2005/09/25 16:00:20, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(421)
write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
[2005/09/25 16:01:10, 3] nmbd/nmbd_sendannounce.c:send_host_announcement(208)
send_host_announcement: type 9a03 for host PITCHSERVER on subnet 192.168.0.6 for workgroup WORKGROUP
-----------------------
sieht erstma net so schlecht aus aber mein windowsrechner meint:
"Der angegebene Netzwerkpfad wurde von keinem Netzwerkdienstanbieter angenommen."

thx

pitcher

pitcher166
26.09.05, 08:52
hab grad nochma samba installiert in der hoffnung dass es so geht ... aber nix da ... wenn ich auf den linux-rechner zugreifen will, dann meint windows:
"Der angegebene Netzwerkpfad wurde von keinem Netzwerkdienstanbieter angenommen."

bitte um rat?!?!?!

pitcher

emba
26.09.05, 15:06
[2005/09/25 15:53:01, 1] auth/auth_util.c:make_server_info_sam(840) User nobody in passdb, but getpwnam() fails!
da steht doch der fehler ;)

mach mal smbpasswd -na nobody

greez