Solved

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

Posted on 2006-11-16
4
6,515 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now