Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 96
Linux "time" command output redirection 16 260
Log File Creation with Header and Footer 17 187
lunix and unix command 21 155
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.

751 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