Solved

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

Posted on 2006-11-16
4
6,572 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

756 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