Solved

Unable to open printcap file /etc/printcap for read!

Posted on 2006-11-16
4
6,540 Views
Last Modified: 2013-12-27
OK, I'm back again with another, probably simple, Solaris question...

We had a consultant install Solaris 9 for us a while back and it is a basic install, except for Samba and the applicaiton we use (Datafax) on the box.  We've installed our postscript printer and have the machine working, more or less, at this point.  I'm trying to learn Solaris as much as I can and tweak out the smallish problems we still have on our own.

So, I've set up a Syslog server to have all my devices send their syslogs to and noticed this error:

2006-11-16 09:01:04      Daemon.Error      solaris9      Nov 16 08:57:28 smbd[27358]: [ID 702911 daemon.error]   Unable to open printcap file /etc/printcap for read!
2006-11-16 09:01:04      Daemon.Error      solaris9      Nov 16 08:57:28 smbd[27358]: [ID 702911 daemon.error] [2006/11/16 08:57:28, 0] printing/pcap.c:(159)

It seems to happen every 10-15 minutes or so, however no definitive regularity to it... it just happens a lot!  The error seems to be related to Samba somehow and I found one or two references on the Internet to the problem, but no solutions.


Here's the rub, that file does not exist on my machine...  so do I need to create it?  If so, what's the syntax of the file?  Who should be the owner?  

Any help would be appreciated, this is not an emergency, I'm trying to clean up the machine for production!
0
Comment
Question by:ParadiseITS
  • 2
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 17962496
Check your priinter setting in the samba config file smb.conf , please read this doc:

http://ftp.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

for "The [printers] section"

and this samba HowTo:
http://samba.org/samba/docs/man/Samba-HOWTO-Collection/
0
 
LVL 9

Author Comment

by:ParadiseITS
ID: 17966864
Hmm.. seems to answer all my questions except one, how do I restart the daemon?   It shows the smbd -D to start it, but I don't see a reference on how to stop it w/o rebooting my server...
0
 
LVL 38

Expert Comment

by:yuzh
ID: 17971456
you can restart inetd or smbd and nmbd.

eg:
pkill -HUP smbd
pkill -HUP nmbd

also have a look at this doc:
http://www.sun.com/bigadmin/content/submitted/samba_on_solaris8.html

Have a nice weekend!
0
 
LVL 9

Author Comment

by:ParadiseITS
ID: 18045295
Sorry I've let this go...  been busy plus the holiday.  I've stopped and restarted the services, I'll wait a couple of hours and if it looks clean I'll close the question!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question