#336 printcap


Webmin writes to /etc/printcap with its
configurations, but from what I read, that gets it in
trouble with the lpd on current RedHat distributions.
When I've had the system restart, I get a
default /etc/printcap. We're supposed to only
edit /etc/printcap.local for anything not done by
printconf. If I change the file
in /etc/webmin/lpadmin/config to
use /etc/printcap.local I suppose that will work, but
I was looking for an official explanation. Has this
just been overlooked, or am I missing something.


  • Jamie Cameron

    Jamie Cameron - 2002-02-25

    Logged In: YES

    The best solution depends on whether you are just using
    webmin to manage your printers, or if you are using
    redhat's printtool as well. If it is just webmin, then
    use /etc/printcap otherwise use /etc/printcap.local ..
    Annoyingly, the redhat tool will always overwrite the
    printcap file because it has it's own database of
    printers ...

  • Nobody/Anonymous

    Logged In: NO

    Is there going to be a fix for this? I run RedHat 7.2 and I
    only use Webmin to controll printers...


  • Michael Scully

    Michael Scully - 2002-04-03

    Logged In: YES


    I'm working from memory here, but it seems that I only
    used Webmin for printer setup, but was spanked whenever lpd
    was restarted and a new (empty) /etc/printcap file was
    generated from RedHat's internal configurations. Do you
    know where those are stored, the ones that their printtool
    uses? Also, as it relates to using things like JetDirect
    printers, the RH printtool has settings for strict RFC1179
    compliance, and I have found that older JetDirect cards
    need this to work properly. Just passing this along.

  • Jamie Cameron

    Jamie Cameron - 2002-04-04
    • status: open --> closed
  • Jamie Cameron

    Jamie Cameron - 2002-04-04

    Logged In: YES

    I think in future releases I will make webmin edit
    /etc/printcap.local instead of /etc/printcap, if a restart
    of lpd is overwriting /etc/printcap.

    Unfortunately, I don't know where redhat stores the
    information from which /etc/printcap is built, or what
    non-standard format it is stored in :(

  • Nobody/Anonymous

    Logged In: NO

    I have alread change the conf file to printcap.local. Now
    it updates that file, however printers do not show till
    till i restart lpd (BAD since I have 450 printers with
    1000+ people printing to them).

    I found that this does not always work. So I scheduled a
    Cron job to help it out :)

    cat /etc/printcap.local >/etc/printcap; /usr/sbin/lpc
    reread &>/dev/null; /usr/bin/killall -HUP smbd

    I scheduled this ever 10 minutes an it simply cats
    printcap.local into printcap, rereads the conf for the
    printers, and reads smb so that printers show up in SAMBA.

    Anyways hope this helps anyone who was having similar
    issues as me.

    Thank you for this GREAT script!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks