Forum archive
Fileserver samba logs out of control
Since I migrated to the new v14 fileserver my samba log files are growing like crazy.
/var/log/samba/samba.log has a lot of messages i don't understand. It seems to be reloading the conf file time and time again. It also gives debug like source code references...
[2015/12/14 16:44:05.761478, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:44:05.761702, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:44:05.761876, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:44:05.762264, 2] ../source3/lib/interface.c:341(add_interface) added interface eth0 ip=192.168.69.7 bcast=192.168.69.255 netmask=255.255.255.0 [2015/12/14 16:44:05.772417, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:44:05.772529, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:44:05.772613, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:44:05.778626, 2] ../source3/smbd/service.c:407(create_connection_session_info) guest user (from session setup) not permitted to access this share (dctax) [2015/12/14 16:44:05.778777, 1] ../source3/smbd/service.c:550(make_connection_snum) create_connection_session_info failed: NT_STATUS_ACCESS_DENIED [2015/12/14 16:44:05.780296, 2] ../source3/smbd/service.c:407(create_connection_session_info) guest user (from session setup) not permitted to access this share (dctax) [2015/12/14 16:44:05.780343, 1] ../source3/smbd/service.c:550(make_connection_snum) create_connection_session_info failed: NT_STATUS_ACCESS_DENIED [2015/12/14 16:44:14.673947, 2] ../source3/smbd/close.c:780(close_normal_file) dooy closed file DCtaxData/Clients DCTS/Wema/W-Holdings NV/Winstbelasting/Fiscal year 2013/DCTS2015-414 AWB 2013, W-Holdings N.V..pdf (numopen=6) NT_STATUS_OK [2015/12/14 16:44:51.141449, 2] ../source3/smbd/server.c:419(remove_child_pid) Could not find child 32520 -- ignoring [2015/12/14 16:45:06.144041, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:45:06.144272, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:45:06.144446, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:45:06.144837, 2] ../source3/lib/interface.c:341(add_interface) added interface eth0 ip=192.168.69.7 bcast=192.168.69.255 netmask=255.255.255.0 [2015/12/14 16:45:06.156000, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:45:06.156170, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:45:06.156316, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:45:06.201427, 2] ../source3/smbd/service.c:407(create_connection_session_info) guest user (from session setup) not permitted to access this share (dctax) [2015/12/14 16:45:06.201576, 1] ../source3/smbd/service.c:550(make_connection_snum) create_connection_session_info failed: NT_STATUS_ACCESS_DENIED [2015/12/14 16:45:06.203547, 2] ../source3/smbd/service.c:407(create_connection_session_info) guest user (from session setup) not permitted to access this share (dctax) [2015/12/14 16:45:06.203689, 1] ../source3/smbd/service.c:550(make_connection_snum) create_connection_session_info failed: NT_STATUS_ACCESS_DENIED [2015/12/14 16:45:13.613774, 2] ../source3/smbd/open.c:1002(open_file) luzina opened file DCtaxData/AVvB/Brf commentaar AvVB invoering VAS signed.pdf read=No write=No (numopen=5) [2015/12/14 16:45:13.623158, 2] ../source3/smbd/close.c:780(close_normal_file) luzina closed file DCtaxData/AVvB/Brf commentaar AvVB invoering VAS signed.pdf (numopen=4) NT_STATUS_OK [2015/12/14 16:45:13.696562, 2] ../source3/smbd/open.c:1002(open_file) luzina opened file DCtaxData/SIAD/Tabel premie AOV-AWW-AZV 2010-2015.pdf read=No write=No (numopen=5) [2015/12/14 16:45:13.702143, 2] ../source3/smbd/close.c:780(close_normal_file) luzina closed file DCtaxData/SIAD/Tabel premie AOV-AWW-AZV 2010-2015.pdf (numopen=4) NT_STATUS_OK [2015/12/14 16:45:51.178867, 2] ../source3/smbd/server.c:419(remove_child_pid) Could not find child 32522 -- ignoring [2015/12/14 16:46:06.512498, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:46:06.512724, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:46:06.512900, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:46:06.513290, 2] ../source3/lib/interface.c:341(add_interface) added interface eth0 ip=192.168.69.7 bcast=192.168.69.255 netmask=255.255.255.0 [2015/12/14 16:46:06.524274, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:46:06.524401, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:46:06.524499, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:46:06.527047, 2] ../source3/smbd/service.c:407(create_connection_session_info) guest user (from session setup) not permitted to access this share (dctax) [2015/12/14 16:46:06.527172, 1] ../source3/smbd/service.c:550(make_connection_snum) create_connection_session_info failed: NT_STATUS_ACCESS_DENIED [2015/12/14 16:46:51.226838, 2] ../source3/smbd/server.c:419(remove_child_pid) Could not find child 32548 -- ignoring [2015/12/14 16:47:06.884600, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:47:06.884827, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:47:06.885029, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:47:06.885408, 2] ../source3/lib/interface.c:341(add_interface) added interface eth0 ip=192.168.69.7 bcast=192.168.69.255 netmask=255.255.255.0 [2015/12/14 16:47:06.896006, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:47:06.896132, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:47:06.896228, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:47:06.898207, 2] ../source3/smbd/service.c:407(create_connection_session_info) guest user (from session setup) not permitted to access this share (dctax) [2015/12/14 16:47:06.898292, 1] ../source3/smbd/service.c:550(make_connection_snum) create_connection_session_info failed: NT_STATUS_ACCESS_DENIED [2015/12/14 16:47:51.274362, 2] ../source3/smbd/server.c:419(remove_child_pid) Could not find child 32550 -- ignoring [2015/12/14 16:48:07.253954, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:48:07.254195, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:48:07.254370, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]" [2015/12/14 16:48:07.254754, 2] ../source3/lib/interface.c:341(add_interface) added interface eth0 ip=192.168.69.7 bcast=192.168.69.255 netmask=255.255.255.0 [2015/12/14 16:48:07.265065, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[homes]" [2015/12/14 16:48:07.265231, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dctax]" [2015/12/14 16:48:07.265378, 2] ../source3/param/loadparm.c:3582(do_section) Processing section "[dcpayroll]"
And /var/log/auth.log has a ton of messages regarding user nobody
Dec 14 16:33:31 bridge2 smbd[32424]: pam_unix(samba:session): session closed for user nobody Dec 14 16:34:17 bridge2 smbd[32427]: pam_unix(samba:session): session closed for user nobody Dec 14 16:35:17 bridge2 smbd[32430]: pam_unix(samba:session): session closed for user nobody Dec 14 16:36:17 bridge2 smbd[32455]: pam_unix(samba:session): session closed for user nobody Dec 14 16:37:17 bridge2 smbd[32457]: pam_unix(samba:session): session closed for user nobody Dec 14 16:37:54 bridge2 smbd[32424]: pam_unix(samba:session): session closed for user nobody Dec 14 16:38:17 bridge2 smbd[32460]: pam_unix(samba:session): session closed for user nobody Dec 14 16:38:42 bridge2 smbd[32461]: pam_unix(samba:session): session closed for user nobody Dec 14 16:38:42 bridge2 smbd[32462]: pam_unix(samba:session): session closed for user nobody Dec 14 16:39:01 bridge2 CRON[32464]: pam_unix(cron:session): session opened for user root by (uid=0) Dec 14 16:39:01 bridge2 CRON[32464]: pam_unix(cron:session): session closed for user root Dec 14 16:39:17 bridge2 smbd[32485]: pam_unix(samba:session): session closed for user nobody Dec 14 16:40:17 bridge2 smbd[32487]: pam_unix(samba:session): session closed for user nobody Dec 14 16:40:58 bridge2 smbd[32424]: pam_unix(samba:session): session closed for user nobody Dec 14 16:41:17 bridge2 smbd[32512]: pam_unix(samba:session): session closed for user nobody Dec 14 16:42:17 bridge2 smbd[32514]: pam_unix(samba:session): session closed for user nobody Dec 14 16:43:17 bridge2 smbd[32517]: pam_unix(samba:session): session closed for user nobody Dec 14 16:44:17 bridge2 smbd[32519]: pam_unix(samba:session): session closed for user nobody Dec 14 16:45:17 bridge2 smbd[32521]: pam_unix(samba:session): session closed for user nobody Dec 14 16:46:06 bridge2 smbd[32546]: pam_unix(samba:session): session closed for user nobody Dec 14 16:47:06 bridge2 smbd[32549]: pam_unix(samba:session): session closed for user nobody Dec 14 16:48:07 bridge2 smbd[32551]: pam_unix(samba:session): session closed for user nobody Dec 14 16:49:07 bridge2 smbd[32553]: pam_unix(samba:session): session closed for user nobody Dec 14 16:50:06 bridge2 smbd[32555]: pam_unix(samba:session): session closed for user nobody Dec 14 16:50:06 bridge2 smbd[32556]: pam_unix(samba:session): session closed for user nobody Dec 14 16:51:06 bridge2 smbd[32581]: pam_unix(samba:session): session closed for user nobody Dec 14 16:52:06 bridge2 smbd[32584]: pam_unix(samba:session): session closed for user nobody Dec 14 16:52:41 bridge2 smbd[32585]: pam_unix(samba:session): session closed for user nobody Dec 14 16:52:41 bridge2 smbd[32586]: pam_unix(samba:session): session closed for user nobody Dec 14 16:52:47 bridge2 smbd[32587]: pam_unix(samba:session): session closed for user nobody Dec 14 16:53:07 bridge2 smbd[32589]: pam_unix(samba:session): session closed for user nobody
Any advice how to solve underlying problems?
As for your auth log, is this server internet accessible? If so you should block the ports that Samba uses (Samba/SMB/CIFS should not be internet accessible). The Samba wiki has info about which ports it exposes (v14.0 fileserver uses an NT4 type config).
If it's not internet accessible then my guess is that there is something on your network which is trying to access your Samba server without credentials. Maybe its windows clients which use "Network Neighbourhood" to scan for available services/servers? I would be inclined to try to work out what it is and stop it from doing that (or give it credentials if you want it to keep doing that)...
However regarding log size, it seems that Samba does not do a log rotate on the samba.log (only nmdb.log and smdb.log) so it might help a bit if you add that to the logrotate config. Here is what is is by default:
# cat /etc/logrotate.d/samba /var/log/samba/log.smbd { weekly missingok rotate 7 postrotate /etc/init.d/smbd reload > /dev/null endscript compress notifempty } /var/log/samba/log.nmbd { weekly missingok rotate 7 postrotate [ ! -f /var/run/samba/nmbd.pid ] || kill -HUP `cat /var/run/samba/nmbd.pid` endscript compress notifempty }I've never adjusted it before but I'd assume that you could use what is there as a guide. I'm guessing that you'd need to stop samba to do the rotation (as the others do). I'd be really interested on what you find as we might want to adjust the default for v14.1.