Hi there,
Been around Linux a while, new to Samba, know nothing about Windows.
Installed Samba on vanilla Debian Lenny, the package manager gave me
Samba 3.2.5, and it didn't work. Searching revealed that there are
problems with that release so I tried a source install. Never did
like Debian-out-of-date-and-patched-to-hell stuff anyway. The source
install default locations are everywhere different from Debian, and I
think that the two installations may have interfered with each other.
I've used the package manager to remove the Debian-supplied version,
but I don't know if that's been entirely successful.
Following the docs to test the installation (which still doesn't work
but I'm not going to worry you with that for the moment, it's why
I'm
trawling the logs:) I find that when I start Samba, TWO log files are
created for smbd and winbindd, one each in /usr/local/samba/var and in
/var/log/samba. The pairs of files contain different information.
For example one will contain the announcement of the daemon starting,
then apparently the logging switches to the other file e.g.:
/usr/local/samba/var/log.smbd
----------------------------------------------------------------------
[2009/03/27 15:06:32, 0] smbd/server.c:main(1256)
smbd version 3.3.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/03/27 15:06:32, 2] lib/tallocmsg.c:register_msg_pool_usage(106)
Registered MSG_REQ_POOL_USAGE
[2009/03/27 15:06:32, 2] lib/dmallocmsg.c:register_dmalloc_msgs(77)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
----------------------------------------------------------------------
/var/log/log.smbd
----------------------------------------------------------------------
[2009/03/27 15:06:32, 2] param/loadparm.c:do_section(7474)
Processing section "[REB]"
[2009/03/27 15:06:32, 2] param/loadparm.c:do_section(7474)
Processing section "[Design]"
[2009/03/27 15:06:32, 2] param/loadparm.c:do_section(7474)
Processing section "[Archive]"
[2009/03/27 15:06:32, 2] param/loadparm.c:do_section(7474)
Processing section "[homes]"
[2009/03/27 15:06:32, 2] param/loadparm.c:do_section(7474)
Processing section "[printers]"
[2009/03/27 15:06:32, 2] param/loadparm.c:do_section(7474)
Processing section "[print$]"
[2009/03/27 15:06:32, 2] lib/interface.c:add_interface(340)
added interface eth0 ip=fe80::20c:6eff:fe2d:b1c6%eth0
bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
[2009/03/27 15:06:32, 2] lib/interface.c:add_interface(340)
added interface eth0 ip=192.168.0.250 bcast=192.168.0.255
netmask=255.255.255.0
[2009/03/27 15:06:32, 2] lib/interface.c:add_interface(340)
added interface lo ip=::1 bcast=::1
netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
[2009/03/27 15:06:32, 2] lib/interface.c:add_interface(340)
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
[2009/03/27 15:06:32, 2] libsmb/namequery.c:name_query(778)
Got a positive name query response from 192.168.0.10 ( 192.168.0.10 )
[2009/03/27 15:06:48, 2] smbd/server.c:open_sockets_smbd(593)
waiting for a connection
----------------------------------------------------------------------
The testparm utility reports no errors in smb.conf. I have the line
log file = /var/log/samba/log.%m
in smb.conf which I took to mean logs for machines will be written in
the /var/log/samba directory, but not logs for the daemons. To put my
mind at rest, should I also expect the daemon logs (or parts of them??)
to be written there too, or is this a bug, or might this be a symptom
of my ill-advised tinkering?
--
73,
Ged.