[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

distribute /etc/printcap with nis



Title: distribute /etc/printcap with nis

Hi,

we are using SuSe Linux SLES9 and want to distribute the /etc/printcap via NIS.

Our lpd is LPRng-3.9.0

Its looks not so bad, on the client we get the printcap output with the call "ypcat printcap".

The call "lpc client pri821598" shows the following:

.config
 :check_for_nonprintable@
 :client_config_file=/etc/lpd.conf
 :filter_ld_path=/lib\072/usr/lib\072/usr/X11R6/lib\072/usr/local/lib
 :filter_path=/bin\072/usr/bin\072/usr/local/bin\072/usr/sbin\072/usr/local/sbin\072/usr/lib/filters\072/usr/X11R6/bin
 :group=lp
 :mail_operator_on_error=root
 :max_connect_interval#10
 :mc#0
 :pr=/usr/bin/pr
 :printcap_path=|/usr/lib/yp/match_printcap
 :printer_perms_path=/etc/lpd.perms
 :send_data_first@
 :send_try#0
 :server_config_file=/etc/lpd.conf
 :server_user=lp
 :user=lp

# Printcap Information
pri821598
 :lp=
 :rm=pri821598
 :rp=text
 :sd=/var/spool/lpd/pri821598


The script is working too:
hri:/var/log/dump/3 # echo pri821598 | /usr/lib/yp/match_printcap
pri821598:lp=:rm=pri821598:rp=text:sd=/var/spool/lpd/pri821598


The call "lpc server pri821598" shows an error:
hri:/var/log/dump/3 # lpc server pri821598

2005-10-06-14:48:05.433 hri Init_tempfile: bad tempdir '/var/spool/lpd/%P'

When I want to print on the network-printer I get the following:
hri:/var/log/dump/3 # lpr -Ppri821598 /etc/passwd
Status Information, attempt 1 of 3:
sending job 'root@hri+373' to pri821598@localhost
 connecting to 'localhost', attempt 1
 connected to 'localhost'
 requesting printer pri821598@localhost
 job 'root@hri+373' transfer to pri821598@localhost failed
  error 'ERROR TRANSFERRING DATA'
  sending str '^Bpri821598' to pri821598@localhost
Waiting 10 seconds before retry


It looks like the lpd does`nt get some information from ypbind, the output is the same as when I stop ypbind.

Do you have any idea?

Thanks a lot

friendly

Udo Schäfer


***************************************************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Wir weisen darauf hin, dass herkoemmliche E-Mails mit und ohne Zutun von Dritten verloren gehen, veraendert oder verfaelscht werden koennen. Sie sind nicht gegen den Zugriff Dritter geschuetzt, so dass ihre Vertraulichkeit unter Umstaenden nicht gewahrt ist. Wir haften somit nicht fuer die Unversehrtheit von E-Mails nach Verlassen unseres Herrschaftsbereiches und ersetzen hieraus entstehende Schaeden nicht. Sollte trotz der von uns verwendeten Virusschutzprogramme durch die Zusendung von E-Mails ein Virus in ihre Systeme gelangen, haften wir nicht fuer hieraus entstehende Schaeden. Dieser Haftungsausschluss gilt nur soweit gesetzlich zulaessig.

 
This E-Mail contains confidential and/or proprietary information. If you are not the intended recipient, or if you received the E-Mail by mistake, we ask you to notify the sender immediately and destroy this E-Mail. The unauthorized reproduction or distribution of this E-Mail is prohibited. We draw your attention to the fact that normal emails can be lost, changed or falsified, with or without any interference by third persons. They are not protected against access by third persons so that their confidentiality may not be assured in certain circumstances. Therefore we cannot be responsible for the integrity of emails after they have left our sphere of control. We shall not indemnify you for any damages resulting out of these circumstances. If, despite our use of anti-virus software, a virus enters your systems in connection with the sending of the email, you may not hold us liable for any damages that may arise in that connection. We will accept liability which by law we cannot exclude.

***************************************************************************


Reply to: