Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old August 8th, 2006   #1
tjansson
A Carafe of Ubuntu
 
tjansson's Avatar
 
Join Date: Apr 2006
Location: Copenhagen
Beans: 91
Ubuntu 9.04 Jaunty Jackalope
[SOLVED] Samba log file

I have a server setup with samba and everything is works fine. The only thing that annoys me is that the log files are filled with lines like this:
Code:
[2006/08/08 12:59:00, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
all the log files in /var/log/samba are filled with these lines, so I tried to disable all printer settings in /etc/samba/smb.conf and afterwards it look like this:
Code:
   load printers = no

;   printing = bsd
;   printcap name = /etc/printcap
;   printing = cups
;   printcap name = cups
;   printer admin = @lpadmin

;[printers]
;   comment = All Printers
;   browseable = no
;   path = /tmp
;   printable = yes
;   public = no
;   writable = no
;   create mode = 0700

;[print$]
;   comment = Printer Drivers
;   path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   guest ok = no
The reloaded the samba server with /etc/init.d/samba reload, but appereantly it didn't work since the log files still contains the lines:
Code:
root@utopia:/var/log/samba# tail log.smbd
[2006/08/08 13:45:31, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2006/08/08 13:45:31, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2006/08/08 16:14:47, 1] smbd/server.c:open_sockets_smbd(360)
  Reloading services after SIGHUP
[2006/08/08 16:14:47, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2006/08/08 16:14:47, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
__________________
Kind regards
Thomas Jansson - www.tjansson.dk
Geek By Nature | Linux By Choice
tjansson is offline   Reply With Quote
Old August 9th, 2006   #2
mynameisjohn
First Cup of Ubuntu
 
mynameisjohn's Avatar
 
Join Date: Jun 2006
Location: belper, uk
Beans: 4
Ubuntu 6.06
Re: Samba log file

i believe you want some lines like these

Code:
   printcap name = /dev/null
   load printers = no
   printing = bsd
hth
__________________
time for more jelly.
mynameisjohn is offline   Reply With Quote
Old August 9th, 2006   #3
tjansson
A Carafe of Ubuntu
 
tjansson's Avatar
 
Join Date: Apr 2006
Location: Copenhagen
Beans: 91
Ubuntu 9.04 Jaunty Jackalope
Re: Samba log file

Nice - that seems to have worked! Thanks alot!
__________________
Kind regards
Thomas Jansson - www.tjansson.dk
Geek By Nature | Linux By Choice
tjansson is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:41 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry