Re: LPRng: Cups LPRng

2005-02-11 Thread Craig Small
On Mon, Jan 24, 2005 at 12:37:13PM +0100, Longina Przybyszewska wrote:
 Does anyone has experience with CUPS client and LPRng server?

I done this before.

 Cups clients should  produce a job and  do all filtering and 
 option setting, than  send a job as 'raw' to the printer server who does 
 all accounting and printing after recognizing type of job  .
I'm confused because you say the cups clients filter then send the job
as raw.  I assume that the cups clients filter and send the cooked
job to the lprng server which should do no more further filtering.

It's pretty simple to do. First setup lprng to talk to the printers
and make sure you can remotely print in lpd.perms. Then tell the cups
clients there is a lpd printer over on that LPRng server...

Make sure lprng configuration doesn't have any filters. If you do
have some clients that need filters then have a raw printer item
that talks to the printer itself and a filtering printer that bounces
the job to the raw printer item.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: [tom.henderson@wesley.com: Bug#291934: lprng: Remote jobs never print and lpc lpq stops workin]

2005-01-28 Thread Craig Small
Hello Patrick,
  I have received this bug report for lprng 3.8.28.  The fact that
kernel changes make it work is strange.  I have asked for a debug on the
network -D network output and see if he can do a strace too.

The bug report is also at http://bugs.debian.org/291934

  - Forwarded message from Tom Henderson [EMAIL PROTECTED] -
Any remote print jobs coming in seem to make the lpd spooler just hang.
Typing 'lpc lpq printername' will hang until I kill it
This hanging on lpc commands starts just a few minutes after print jobs
start coming in.  If enough come in before the lpc command hangs, lpc
will show the jobs as 'incoming'.  The complete job will be received --
verified with ethereal -- and can be seen in a file named 'temp' in
the printer spool directory, but never gets turned into a data file
with the dfA* naming convention, and the remote system evidently never
gets a success code returned, because it sends the same job again.

To top it all off, this happens on kernel-image-2.6.8-1-686-smp or
kernel-image-2.6.3-1-686-smp, but everything works just fine on
kernel-image-2.4.25-1-686-smp.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages lprng depends on:
ii  debconf 1.4.30.11Debian configuration management sy
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libcomerr2  1.35-6   The Common Error Description libra
ii  libkrb531.3.6-1  MIT Kerberos runtime libraries
ii  libssl0.9.7 0.9.7e-2 SSL shared libraries

-- debconf information:
* lprng/setuid_tools: true
* lprng/start_lpd: true
  lprng/twolpd_perms:
  lprng/twolpd_conf:



- End forwarded message -

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: [aj@andaco.de: Bug#287521: lprng: FTBFS (amd64/gcc-4.0): pointer targets in passing argument 3 of 'Read_fd_len_timeout' differ in signedness]

2005-01-11 Thread Craig Small
Hello Patrick,
  A pretty easy one to fix, with a patch even!
  
Can you tell me if you will be releasing a new version of lprng soon?
If it is a while off I'll release a Debian-specific version with this
patch and a few other minor changes.

 - Craig

- Forwarded message from Andreas Jochens [EMAIL PROTECTED] -

Subject: Bug#287521: lprng: FTBFS (amd64/gcc-4.0): pointer targets in passing 
argument 3 of 'Read_fd_len_timeout' differ in signedness
To: Debian Bug Tracking System [EMAIL PROTECTED]
From: Andreas Jochens [EMAIL PROTECTED]
Date: Tue, 28 Dec 2004 16:44:44 +0100
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham 
version=3.0.1

Package: lprng
Severity: normal
Tags: patch

When building 'lprng' on amd64 with gcc-4.0,
I get the following error:

gcc -I.. -I. -I./include -I./common -D_FILE_OFFSET_BITS=64 -I/usr/include -g -W 
-Wall -Werror -Wno-unused -g -O2 -D_FILE_OFFSET_BITS=64 -g -W -Wall -Werror 
-Wno-unused -DHAVE_CONFIG_H -c ./common/krb5_auth.c -o krb5_auth.o
cc1: warnings being treated as errors
./common/krb5_auth.c: In function 'des_read':
./common/krb5_auth.c:925: warning: pointer targets in passing argument 3 of 
'Read_fd_len_timeout' differ in signedness
make[2]: *** [krb5_auth.lo] Error 1
make[2]: Leaving directory `/lprng-3.8.28/src'

With the attached patch 'lprng' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/lprng-3.8.28/src/common/krb5_auth.c 
./src/common/krb5_auth.c
--- ../tmp-orig/lprng-3.8.28/src/common/krb5_auth.c 2004-09-24 
22:19:57.0 +0200
+++ ./src/common/krb5_auth.c2004-12-28 16:01:50.449169480 +0100
@@ -922,7 +922,7 @@
nstored = 0;
}

-   if ((cc = Read_fd_len_timeout(transfer_timeout, fd, len_buf, 4)) != 4) {
+   if ((cc = Read_fd_len_timeout(transfer_timeout, fd, (char*)len_buf, 4)) 
!= 4) {
/* XXX can't read enough, pipe must have closed */
return(0);
}



- End forwarded message -

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: [jfs@computer.org: Bug#286391: lprng_certs: Insecure temporary file handling]

2005-01-03 Thread Craig Small
Hello Patrick,
  A minor security bug that makes insecure directories.  I have patched
the Debian package but you probably want to fix your archive some time.

  - Craig

- Forwarded message from Javier Fernández-Sanguino Peña [EMAIL PROTECTED] 
-

Subject: Bug#286391: lprng_certs: Insecure temporary file handling
Date: Mon, 20 Dec 2004 00:40:21 +0100
From: Javier Fernández-Sanguino Peña [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham 
version=3.0.1

Package: lprng
Version: 3.8.28-1
Priority:important
Tags: security

The lprng_certs script does not protect itself from temporary directory
attacks since it creates several temporary files in an insecure manner
($$.sslcfg, $$.crt and $$.key, the process PID is not suffient to avoid
an attack) and does not check if the temporary files it tries to use
already exist before using them. Also, these temporary files are all not
removed after the script is finished (only the first one is) and
might potentially contain sensitive information.

The attached patch is an attempt to fix this behaviour using the
mktemp tool, I've tackled this bug by creating a temporary directory
where all these files are created. 


Regards

Javier

PS: I initially reported this to the security team back in June,
but have not found time to follow up on this issue until today.
Security team, please check
Resent-Message-ID: [EMAIL PROTECTED]

--- lprng_certs.orig2004-12-20 00:29:21.0 +0100
+++ lprng_certs 2004-12-20 00:33:49.0 +0100
@@ -320,7 +320,9 @@
 # set default values
 
 
-CFG=/tmp/$$.sslcfg
+TMPDIR=`mktemp -d -t lprng.XX` || { echo $0: Cannot create temporary 
directory! 2 ; exit 1; }
+trap /bin/rm -rf ${TMPDIR} 0 1 2 3 13 15
+CFG=$TMPDIR/sslcfg
 
 OPENSSL=/usr/bin/openssl
 CA_KEY=//etc/lprng/ssl.ca/ca.key
@@ -508,14 +510,14 @@
shift
if [ $1 =  ] ; then usage; fi;
if [ ! -f $1 ] ; then useage; fi;
-   sed -n -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/p' $1 /tmp/$$.key
-   sed -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/d' $1 /tmp/$$.crt
-   STEP= encrypt /tmp/$$.key
+   sed -n -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/p' $1 $TMPDIR/key
+   sed -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/d' $1 $TMPDIR/crt
+   STEP= encrypt $TMPDIR/key 
status=$?
echo STATUS $status
if [ $status = 0 ] ; then
mv $1 $1.orig
-   cat /tmp/$$.crt /tmp/$$.key $1
+   cat $TMPDIR/crt $TMPDIR/key $1
fi
 ;;
 
@@ -845,5 +847,4 @@
 exit 1
 ;;
 esac
-rm -f ${CFG}
 exit $RET




- End forwarded message -

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: duplicate postings?

2004-06-29 Thread Craig Small
On Mon, Jun 28, 2004 at 05:43:20PM -0400, Dave Lovelace wrote:
 Am I the only one getting duplicate postings?  This is the second copy
 of
 this one, and I got several copies of the one it's responding to.

Yes, there are definitely duplicates Dave.
You can tell the other Dave Lovelace that too.

Actually the other me can do that for you in a few minutes.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA
DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian
developer
csmall at : enc.com.au  ieee.org
debian.org



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Effectiveness of anti-spam measures

2004-06-25 Thread Craig Small
On Thu, Jun 24, 2004 at 06:45:24AM -0700, Patrick Powell wrote:
 I fed it the last 6 months of the LPRng mailing list as 'ham'
 and the last couple of days of 'spam' as 'spam'.  Ummm...
 Well, it appears that most of the LPRng postings appear to be 'spam-like'
 as the filtering was less effective.
You need about 1000 of both for the training to work.  
Having only subscribers being able to email can help too, even if it
just puts a penalty onto the email instead of blocking it.
You can also have a whitelist subscription which works just like you
are subscribed but you receive no email.

Did it say it was spam-like or spam?  There is a scoring used so even
if the email scored 4 or so it still goes through.

 I removed the training and went back to the rule set method.
You can use both.

 I am thinking aobut adding some 'obfuscation' to the postings to
 remove or modify email addresses in headers/body so that mailing list
 monitors do not pick them up.  Simple changes such as
 [EMAIL PROTECTED] - user _at_ hostname.place
 currently seem to be effective.
It can help. Not with list spam but with spam to subscribers of the
list.

There's no one good way, 60-90% of my email is detected spam or spam
attempts.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org


-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Lprngtool on amd64

2004-05-22 Thread Craig Small
On Tue, May 18, 2004 at 04:17:17PM -0500, Sam Warren wrote:
 I am trying to compile LPRngTool on SuSE SLES8 for AMD64 and I get the
 following error: machine 'x86_64-unknown' not recognized
 Can anyone tell me how to get this compiled on AMD64? Thanks!
My guess is the config.* files are out of date.  I used to always get
pinged by these until I put some changes in so they are updated at build
time.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: lprngtool broken as of today on Debian SID

2004-04-29 Thread Craig Small
On Fri, Apr 30, 2004 at 09:38:10AM +0800, Uwe Dippel wrote:
 There was a major upgrade today of lprngtool and since then it wouldn't
 start:
 # lprngtool
 Xlib: connection to :0.0 refused by server
 Xlib: No protocol specified
It's a you problem.
You're running X as one user and running the program as another.
The cookies don't match so Xlib tells you to go away.
If you get something like this again, as the same user as you tried 
to run lprngtool try running something like xclock.

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: Debian Bug#245274: lpd goes into busyloop processing queue

2004-04-24 Thread Craig Small
A Debian user has found that lprng goes into some tight loop and eats
his CPU.

I really cannot see what the problem is Patrick so I'm asking you for
your assistance.

  - Craig

- Forwarded message from Wichert Akkerman [EMAIL PROTECTED] -
Package: lprng
Version: 3.8.26-1
Severity: grave

lpd on my printserver goes insane occasionaly, apparently while
processing a printjob. Symptoms are one or more lpd processes consuming
all CPU while scanning over a print spool. I caught a strace of this
which is availably at http://www.wiggy.net/tmp/lpd.bug.bz2 .

The configuration is simple: I have two printqueues: a bouncequeue
going directly to a printer and a permanently stopped queue on which
jobs are submitted and then moved on demand to the other queue.

This setup worked fine with previous versions of lprng.

Wichert.

-- 
Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.




- End forwarded message -

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: The IPP problem

2004-02-09 Thread Craig Small
Hello,
 The IPP problem I previously mentioned looks like it is due to the fact
that lprng does not return an error 400 if it gets a bad request.
Looking at the code, I can see no HTTP processing though i could easily
miss it.

The work-around is to disable the ipp port in lpd.conf
ipp_listen_port=off

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: gnome-print doesn't like lprng 3.8.25 IPP

2004-02-07 Thread Craig Small
Hello Patrick,
  Something somewhere doesn't like your version of IPP.  People are
getting various gnome programs hanging due to gnome-print talking to
lprng via IPP who then disagree about something.

References:
  http://bugzilla.gnome.org/show_bug.cgi?id=133751
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=231587

Feb  7 21:01:40 christian SERVER[29903]: Dispatch_input: bad request line
'POST / HTTP/1.1' from 127.0.0.1 port 37816

What we have here, is a failure to communicate

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: LPRng homepage http://www.lprng.com/ broken ?

2003-12-11 Thread Craig Small
On Fri, Dec 12, 2003 at 01:18:06AM +0100, Roland Mainz wrote:
 Did anyone noticed yet that the LPRng home page at http://www.lprng.com/
 is broken ? The main page is gone and Apache now views a directory
 listing... ;-(

Yes we did, Patrick mentioned he was having network problems.
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: permissions on /var/spool/printer

2003-12-03 Thread Craig Small
On Tue, Dec 02, 2003 at 10:04:19AM -0700, David Bear wrote:
 I would like to have a queue administrator that is not root.  I
 noticed that lpd runs a su 'daemon' and that /var/spool/lpd/.. is
 owned by daemon and group daemon.  Yet the perms set on /var/spool/lpd
 are 700.  If I set perms to 770 and then put a user in the daemon
 group would that enable that person to be a 'printer admin', ie use
 lpc to hold, flush, release queues?

The permissions of the files have nothing to do with what people can do.
All the file permissions do is make sure (or break if they're wrong)
that lpd is able to do its thing.

The printer admin comes through the lpr/lpd interface and so it is up to
lpd to enforce whatever control you want.  That means editing the
lpd.perms file in lprng to do whatever you want.

Be warned that it is trivially easy to fool lpd using the standard
protocol into thinking you are any user you want, it is just a string
sent in a TCP packet.  

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Advanced Configuration questions

2003-11-13 Thread Craig Small
On Wed, Nov 12, 2003 at 06:36:32PM -0800, Patrick Powell wrote:
  
  3. Users through Samba to share printers to WindowsXP... the printer status 
  always says Access Denied, Unable to Connect for the printer status.  Is 
  this status from lprng or from samba?
 
 It appears to be from Samba...

I think it is the stupid way windows XP does it printing.  I don't recall
the full email or where I saw it but someone said you need to tell samba
that the user on the windows XP computer is a printer admin to see
printer status.

It was a few weeks ago and the email was not what I was looking for but
it might get you going on the right track Dan, or be completely wrong
and waste several of your precious hours. :/

  - Craig (fighting XP and MYOB until 2am and feeling it)
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Switching to LPRng on RedHat 9

2003-11-05 Thread Craig Small
On Wed, Nov 05, 2003 at 07:59:39AM -0800, Patrick Powell wrote:
 The redhat-switch-printer program allows you to switch between LPRng and
 CUPS on RedHat 9.  I looked at their system,  which apparently was taken
 from Debian,  and say 'Hats off to the Debian Folks, you clevel devils, you!

Ironically the Debian lprng package doesn't do this, though they are
used extensively elsewhere.  I'll talk to my fellow *lpr* maintainers
about putting something like this in.

Currently, you cannot install lpr, lprng and cupsys-bsd on a Debian
system at the same time.

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: lprng -Z {options}

2003-10-15 Thread Craig Small
On Thu, Oct 16, 2003 at 09:13:53AM +1300, Bobby Cheema wrote:
 I want to use all the available options with lpr -Z, The man page only 
 says you can use options but the options are not provided
 
 lpr -Plp -Zdocs /etc/hosts
 
 is supposed to print all the options but in my case its prininting the 
 hosts file instead. Any idea is to what is going wrong here.

The -Z flag means send those options to the print spooler, which is
generally your filter. It's not really up to lprng to do much with it.

-Zdocs looks like a foomatic flag to me, are you sure that you have the
foomatic (or whatever you are using) filter installed?

  - Craig

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: [william.luecke@nist.gov: Bug#213195: lprng: lpd calculates free disk space incorrectly]

2003-09-30 Thread Craig Small
Hello Patrick and list,
  I'm trying to do some more diagnostics on this problem.  I've
suggested a lpr -D5 which can show the minfree value, but I cannot see
which magic -D flag to show what value minfree is being compared
against.

I still haven't got a reply from him yet, so this bug is still
tentative, but some debugging suggestions would help.

http://bugs.debian.org/213195

  - Craig
  
- Forwarded message from Bill Luecke [EMAIL PROTECTED] -

X-Original-To: [EMAIL PROTECTED]
X-Mail-Format-Warning: Bad RFC2822 header formatting in From csmall  Sun Sep 28 
19:18:14 2003
Subject: Bug#213195: lprng: lpd calculates free disk space incorrectly
Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Resent-From: Bill Luecke [EMAIL PROTECTED]
Original-Sender: Bill Luecke [EMAIL PROTECTED]
Resent-To: [EMAIL PROTECTED]
Resent-Cc: Craig Small [EMAIL PROTECTED]
Resent-Date: Mon, 29 Sep 2003 00:18:01 UTC
Resent-Message-ID: [EMAIL PROTECTED]
X-Debian-PR-Message: report 213195
X-Debian-PR-Package: lprng
X-Debian-PR-Keywords: 
From: Bill Luecke [EMAIL PROTECTED]
To: Debian Bug Tracking System [EMAIL PROTECTED]
Resent-Sender: Craig Small [EMAIL PROTECTED]
X-Spam-Status: No, hits=-8.1 required=5.0
tests=BAYES_01,DEBIAN_BTS_BUG,X_LOOP
version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

Package: lprng
Version: 3.8.22-2
Severity: grave
Justification: renders package unusable



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux tin 2.2.18 #1 Thu Feb 15 17:31:42 EST 2001 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages lprng depends on:
ii  debconf   1.3.14 Debian configuration management sy
ii  libc6 2.3.2-7GNU C Library: Shared libraries an
ii  libcomerr21.34+1.35-WIP-2003.08.21-3 The Common Error Description libra
ii  libkrb53  1.3-2  MIT Kerberos runtime libraries
ii  libssl0.9.7   0.9.7b-2   SSL shared libraries

-- debconf information:
* lprng/start_lpd: true
  lprng/twolpd_perms: 
  lprng/twolpd_conf: 
  lprng/setuid_tools: false



I hope I'm supposed to enter further info about this.



I did a dist-upgrade in stable last week, and lpd stopped printing
jobs over about 20k in size. I think this was caused because lpd is
querying for free diskspace, and getting a number that is about 1/4000
too small. At one point df also returned these numbers that were off
by that amount too, but that problem vanished when I did a
dist-upgrade to testing.  (I figured this out because while df was
reporting much too small numbers for free diskspace, I tried printing
a number of different files and found that the failure point was right
at the amount of free space that df (incorrectly) reported. 


My system has the following partitions


Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/hda4 18468876   5922480  11608200  34% /
/dev/hda3   521780223704271572  46% /var
/dev/hda1   521748   364494880   1% /tmp


I have the following packages installed that lprng depends on

ii  libc6  2.3.2-7 
ii  libcomerr2 1.34+1.35-WIP-2003.08.21-3   
ii  libkrb53   1.3-2 
ii  libssl0.9.70.9.7b-2
ii  suidmanager0.52


(When I was running the stable distribution, however, I did have a
libc6 from testing. 

I'm out of ideas here so I resort to the bug report. 

Thanks!

bill



- End forwarded message -

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Re: one printer, multiple queues for 2-up, scaling, etc.

2003-09-24 Thread Craig Small
On Wed, Sep 24, 2003 at 09:09:13PM -0400, Joel Hammer wrote:
 You don't need anything fancy. Just use different filters for the same
 phyical device. Here is what I have in my printcap:

That's what the cookbook says not to do as you now have some contention
for the physical device.  A better idea is to bounce it all to one queue
which has sole access to the printer.

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: An interesting idea for lprng

2003-09-11 Thread Craig Small
Hello Patrick,
  Here is an interesting but strange idea.  Something for those times
when you wonder what wackyness you can get lprng to do in your spare
moments :)

Needless to say, while the idea has merit, occassional users probably
should use something more lightweight.

ref: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=199094

Dmitry Rutsky [EMAIL PROTECTED] reported:
 I think there should be a way to start the daemon only when it is needed.  Of
 course, constant run is completely acceptable for servers, but for a home
 computer, where printing is occasional and rare, most of the time it is just
 a redundant process slot, about 350K of virtual memory and bootup entry. Not
 very much to worry about, though.
 
 I couldn't figure out how to do it from the lprng documentation.  AFAIK, all
 thegood daemons which perform server functions for occasional tasks can run via
 inetd;  lpd doesn't seem to be able to do so.

 - Craig

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: sysconfdir changes

2003-09-11 Thread Craig Small
Hello Patrick,
  All the config files use ${sysconfig_dir}/lpd/whatever.  The hard
coding of /lpd/ causes a lot of problems for me (as a packager) so
I now have to manually change it to /lprng/ by doing evil with vim
to configure, well actually :%s/\/lpd\//\/lprng\//s

A wishlist from me, either remove the  /lpd/ or make it configurable.
thanks!

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: Version 3.8.22

2003-09-10 Thread Craig Small
Did I miss the release announcement or wasn't there one?

Sourceforge only has lprng 3.8.15 and below.

 - Craig

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Intermediate file clean-up

2003-09-09 Thread Craig Small
On Tue, Sep 09, 2003 at 06:03:59PM -0400, Thomas P. Kelliher wrote:
 Are there configuration options that I can use to have the intermediate
 file removed once the print job has been sent to the printer?  Thanks for
 any assistance.

That's the done_jobs problem i think.

done_jobs=0
or change the time they hang around
done_jobs_max_age=nn  (in seconds)

both in lpd.conf

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: ifhp and Xerox 4400

2003-09-09 Thread Craig Small
On Tue, Sep 09, 2003 at 11:45:20AM -0700, Patrick Powell wrote:
 See http://www.linuxprinting.org for information on the foomatic-rip
 filter and this will be incorporated into ifhp:
 
   --with-foomatic-rip=/path/too/foomatic_rip
 
 As of the next release of ifhp,  you will be able to use foomatic-rip
 and the associated ppd files with ifhp:

What does that give you that just using foomatic-rip doesn't?

I'm using foomatic-rip and lprng quite nicely.  The first time I have
printing various documents and they all come out correctly.

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: log is a reserved function name in ANSI C

2003-09-08 Thread Craig Small
On Mon, Sep 08, 2003 at 05:24:42PM +0200, Villy Kruse wrote:
 A week or so ago someone got compile problems on a Solaris system using
 the gcc compiler.  The problem was caused by a user defined function
 called log in the lprNG code and as the -Werror flag was set this
 warning was then traeated as an error and the build therefore failed.

I got this in the Debian packages, it was easy to fix. Delete the
function.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=200621archive=yes

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: LPRng and foomatic

2003-08-14 Thread Craig Small
Hello List,
  I was fiddling around and finally got lprng and foomatic to talk.  The 
exising documentation is pretty good, but some parts I didn't get. I was
so happy how it worked out i converted work's printers from the hpijs
mess they were using and put them on foomatic too.

Anyhow I wrote up how I did it here:
http://small.dropbear.id.au/docs/lprngfoo.html

Comments are welcome.

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: Kerberos problems worked around but need to be fixed

2003-08-14 Thread Craig Small
Hello Patrick,
  I had some reports with Kerberos and how the libraries have changed.  
What i did was put some work-arounds in to get it to compile, as I'm a
complete kerberos newbie.

This is just a friendly prompt to remind you the current code won't
compile on the latest kerberos as is.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=200588archive=yes
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=200618archive=yes

To find out what patches I'm carrying in the Debian package, you can
find them here
http://ftp.debian.org/debian/pool/main/l/lprng/lprng_3.8.21-3.diff.gz

Ignore everything in the /debian/ directory.  If you're wondering why
I have something there patched just let me know.

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: LPRng and foomatic

2003-08-14 Thread Craig Small
On Thu, Aug 14, 2003 at 09:15:10AM +0200, Walter Harms wrote:
 i would add what line of foomatic-configure did you use ?
I didn't use it.

 and i had a problem with rlpr (foomatic uses it to reach remote printers)
 thats not part of lprng i used plain lpr instead. what did you do ?
I believe the way it works is it goes through the first queue then
through the filter which puts it into the second queue. It is the second
queue's job to get it to the remote printer.

  - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: ifhp and LPRng-3.8.21

2003-08-14 Thread Craig Small
On Thu, Aug 07, 2003 at 04:31:30PM -0700, James Kelty wrote:
 we have lprng-3.8.21 installed in a test environment with several
 different types of printers, but the main thing is that some use the
 ifhp-3.5.10 filters and some are just straight lpd. The printers using
 ifhp don't seem to print anymore with the 3.8.21 code, but do with the
 3.8.15 code. I was wondering if there were any new ifhp versions (I
 couldn't find any), or if there is a way to trace what the lprng is
 giving/getting from ifhp.

Are you using the OF filter with ifhp?  It could be your problem
considering it seemed to appear in 3.8.16.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=200850


-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: Debian lprng 3.8.21-2 uploaded

2003-08-07 Thread Craig Small
I've just uploaded the Debian package 3.8.21-2. The main differences
between this and -1 version are:

  - Fixed the libtool stuff so people running lprng on strange machines
can compile it
  - OF patch from Sam Lown so that filter will work
  - Minor patch, cannot use Yes/No in Debian config questions

For most people, with the exception of those having problems with
their filters, its not neccessary to upgrade it.

 - Craig
-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: ifhp, lprng, autoconf, and libtool - LPRng - Debian

2003-07-30 Thread Craig Small
On Tue, Jul 29, 2003 at 12:43:56PM -0700, Patrick Powell wrote:
 GRRRHHH Once again I have found that the autoconf/configure,
 gettext, Internationalization,  and libtool versions are now
 JUST SLIGHTLY incompatible.
 
 I need some brave Debian user to try LPRng and ifhp on their
 systems.  Apparently the older libtool and gettext facilities
 I have been using are not quite compatible with debian.

I'll try it.
I would also suggest:
   Luca Filipozzi [EMAIL PROTECTED] - Debian ifhp maintainer
   Ryan Murray [EMAIL PROTECTED] - submitter of bug against lprng
 and libtool for mips, so he should have good access to one.

They don't know I've volunteered them, so I'll leave it to them to
confirm they can help.

My guess is ifhp has the same problem lprng does.

 - Craig

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Perennial CUPS/IPP questions

2003-07-30 Thread Craig Small
On Wed, Jul 30, 2003 at 08:34:00AM -0400, James Thomas Klaas wrote:
 Since you are currently adding it, does that mean it's not there yet?
 I assume you meant lpr -Pipp://host/printer?  Under lp you've got
  -P pagelist - (print page list - ignored) for that option.

For lpr, -P means printer name .  So the printer name will be
ipp://host/printer

  - craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: filter error

2003-07-30 Thread Craig Small
On Wed, Jul 30, 2003 at 05:05:48PM -0700, David Bear wrote:
  Queue: no printable jobs in queue
  Server: no server active
  Status: processing 'dfA940moroni.pp.asu.edu', size 857, format 'f',
 IF filter 'txt2pdf' at 17:00:43.962
  Status: IF filter 'txt2pdf' filter msg - '/usr/local/bin/python:
 can't open file '/usr/local/libexec/filters/txt2pdf'' at 17:00:43.971

I know you said txt2pdf has 751 but are you 100% sure the user and/or
group is correct?  Also can the daemon/lp/printer uid (whatever you use)
reach the directory?

Try running the filter as the same uid.  Also look it the lprng config
files to see you're not switching uids.   I recall some flag that
can change the uid for filters.

 - Craig

-- 
Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
csmall at : enc.com.au  ieee.org   debian.org 

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: foomatic + ifhp

2003-03-27 Thread Craig Small
On Thu, Mar 27, 2003 at 02:55:22AM +0100, Till Kamppeter wrote:
 I think this is really a good idea, because now you have to decide (at 
 least before CUPS 1.2 comes out), either support for bi-di features with 
 ifhp or support for all printer models and driver options with Foomatic. 
 I am wondering why nothing happened around the Foomatic/ifhp combo as 
 Patrick Powell was the one bringing in this idea. Is there anyone more 
 experienced with ifhp than me who want to do it? If something is there 
 please send it to me (or post it on the foomatic-devel forum on 

It appears Patrick had a shortage of time or money (which is the same
thing as the saying goes) and had to do other things that pay bills.
The good news is he said that problem might be fixed now.

 be considered as obsolte. Another advantage of Foomatic 3.0.x is that it 
 gives full support for manufacturer-supplied PostScript PPD files to all 
 spoolers including LPRng 
Especially HP, but not so good with Canon, but that's Canon's moronic
policy's fault, fools.

I'm looking forward to the integration of both, so then I can make the
install of lprng in Debian a lot easier. (and not get so many enquiries)

 - Craig

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: foomatic + ifhp

2003-03-25 Thread Craig Small
On Tue, Mar 18, 2003 at 12:25:50PM -0800, Luca Filipozzi wrote:
 Whatever happened to the idea of using foomatic + ifhp together as
 suggested in your email to this list?
 
 http://marc.theaimsgroup.com/?l=lprngm=100739756403529w=2

If that happened that would be so amazingly fantastic.  LPRng is a good
program, lprngtool is *almost* there but having access to all the
foomatic preinter definitions would be icing on the cake.

Of course you can muck around with the printerdb in lprngtool but it 
misses the point.

  - Craig

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Way too many connects to remote print server

2003-03-19 Thread Craig Small
On Tue, Mar 18, 2003 at 05:05:39PM +0100, [EMAIL PROTECTED] wrote:
 The situation is like this: I have a workstation with Debian GNU/Linux
 and lprng 3.8.15-1. The printer is connected to a remote system and my
 printcap refers all printjobs to that system (a Solaris8 box). Nothing
 special here.
 
 As a matter of fact the printing itself is just fine, but when I look at
 the logs of the printserver I see that my system tries to connect to it
 just about once a second.

Are you sure it is lprng making these connections and not some other
program?  Alternatively if it is lprng making these connections check
something is not driving it to do that.  samba for example can do it and
so can something that is doing repeated lpstat or lpq commands.

BTW, Debian has lprng 3.8.20 but it is stuck in unstable until I get
some major bug sorted out.  It's not lprng's fault and if you get it
installed then you don't have the bug :)

 Sep  6 16:20:29 sanders in.lpd[20166]: [ID 927837 mail.info] connect from system.org

So sanders is the Solaris print server and system.org is you?

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Wrong type used in 3.8.20 (crashes on 64 bit computers)

2003-03-04 Thread Craig Small
On Tue, Mar 04, 2003 at 10:06:52AM -0800, Keith Rinaldo wrote:
 Does it crash on all 64-bit archs or just x86 64-bit?  I've got 3.8.19 running on a 
 Sun machine, which is 64-bit.  I was going to
 install 3.8.20 on a batch of new machines but have held off since reading this post.

At least on the alpha, which is not x86.
It's a one line patch, the usual int versus pointer size problem.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=183137

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Re: Hopefully a quick question on lprng.

2003-02-23 Thread Craig Small
On Fri, Feb 21, 2003 at 01:59:40PM -0800, Patrick Powell wrote:

He's alive, woo hoo.

(first time I've seen a mail for a while, or maybe I'm just not
observant)

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


LPRng: What version?

2003-01-05 Thread Craig Small
I've seen no announcement past 3.8.15, sourceforge has 3.8.15 but the
lprng site has 3.8.19, what's going on here?

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: queue files stay forver

2002-06-23 Thread Craig Small

On Sun, Jun 23, 2002 at 02:05:53PM -0700, Patrick Powell wrote:
 I am posting this to the list as well, as it is an interesting
 question.

I've had a few comments from Debian users about this too.  IIRC, one of
them said that one of their jobs hung around until they got an error and
then the errored job hung around or something like that.

If it helps, I can go through my emails and see if I can find the guy
and ask him some more questions.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: OK, back on now?

2002-06-03 Thread Craig Small

After some readjustment of filters I think I'm back on the list.

Wonder how many other people are not receiving mail because lprng
mail server is listed.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: LPRng Completed Job Quirks

2002-05-17 Thread Craig Small

On Thu, May 16, 2002 at 08:18:44PM -0400, Van Sickler, Jim wrote:
 I just installed LPRng 3.8.12, to see if it would fix
 a problem I've recently encountered.  You mention
 a fix for stale jobs not being removed-that's sort
 of what I've been seeing.

Ah good, I've been getting scattered reports about jobs not being
removed in 3.8.10 (3.8.12 has its own sets of problems).
Hopefully 3.8.13 will make it all happy.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: [hmh@debian.org: Bug#146511: lprng: screwed up tcp wrappers support]

2002-05-11 Thread Craig Small

OK,
 It seems wrappers are ok, unix sockets are ok... but! add them together
and what do you get? You get a broken lprng :(

May 11 21:43:17 fozzie lpd[3623]: connection refused from 0.0.0.0

I'll start digging around.

- Forwarded message from Henrique de Moraes Holschuh [EMAIL PROTECTED] -
Version: 3.8.12-2
Severity: grave
Justification: completely breaks lprng daemon mode

The tcpd code is fucked up:
May 10 11:44:08 khazad-dum lpd[13981]: connection refused from 0.0.0.0

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux khazad-dum 2.4.18-pre9-rmap12e-ll #1 Dom Mar 31 03:56:00 BRT 2002 i686
Locale: LANG=pt_BR, LC_CTYPE=pt_BR

Versions of packages lprng depends on:
ii  debconf   1.0.32 Debian configuration management sy
ii  libc6 2.2.5-6GNU C Library: Shared libraries an
ii  libwrap0  7.6-9  Wietse Venema's TCP wrappers libra

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh

- End forwarded message -

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Linux Kernel Bug? Why is a user program crashing kernel?

2002-05-05 Thread Craig Small

On Sun, May 05, 2002 at 04:50:04PM -0700, Patrick Powell wrote:
 Now I am used to getting all sorts of flames,  but this is just
 a bit odd.  How can a user level program using nothing but 'off the
 shelf' system calls crash a kernel?

kernel panicing is always a kernel problem (Might be application +
kernel though).

I've had lprng panic a kernel before. It was a diskless computer and I
think it was a NFS timeout sort of problem.  Alternatively it could be
bad memory and once you do something to the server to use that part it
kills it.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: checkpc in 3.8.9 still borks filter permissions

2002-04-09 Thread Craig Small

On Sun, Apr 07, 2002 at 02:16:37PM -0700, Patrick Powell wrote:
 Did you try 3.8.10?

3.8.10 did the right thing with the filter permissions. Good!

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Simple Samba

2002-04-04 Thread Craig Small

On Thu, Apr 04, 2002 at 02:46:59PM -0500, Jeff Baldwin wrote:
 What pakcages are required for me to setup printing using LPRng.  I want 
 to keep the install as small as possible, but I want to make sure that I 
 don't lack functionality..
 
 Are there any packages other than LPRng that I should gather?

You may possibly want to put some printing filters on their but usually
for windows printing this is not needed (and causes more problems
sometimes).  Other than that, samba+lprng are about all you need.

If you want to go the other way (Unix lpr/lpd to SMB printer) be careful
of one thing.  The method given in the LPRng howto used to work with
old smbprints and sometimes works with the new smbprint.

The nice samba people have given us the -c flag which is a very welcome
addition.  Change the last few lines to:

cat | /usr/bin/smbclient $server\\$service \
   $password -U $server -c print - -N -P 12

It gets rid of that awful echo rubbish you had to have.  That's good
when wierd things happen as the script sometimes used to hang.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Simple Samba

2002-04-04 Thread Craig Small

On Thu, Apr 04, 2002 at 07:29:16PM -0500, Jeff Baldwin wrote:
 Excellent!  You understand exactly what I'm trying to do here.  I'm going 
 to give it a go w/OUT the print filters first, keeping my fingers crossed.  
Yes, definitely try with no print filters.  In theory windows print
filters will do all you need.

 If I should discover that I need to install some print filters.  Which 
 would you suggest give my situation?  
Depends on why you need the filters.  In this situation they are there
to correct a fault, so it depends on what problem you get and what
printer you have.

Standard answer is ifhp and magicfilter (with its associated programs).

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: checkpc in 3.8.9 still borks filter permissions

2002-04-03 Thread Craig Small


A bug reported to me by Josep Lladonosa i Capell [EMAIL PROTECTED], he
reported it a bit more sanely than me though.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=141090repeatmerged=yes

I thought this (checkpc touching files its not supposed to) was fixed, 
perhaps not.

I got a filter called blah, in /var/spool/lpd/epson600
# ls -l /var/spool/lpd/epson600/blah
-rwxr-xr-x1 daemon   lp 14 Apr  4 09:05 /var/spool/lpd/epson600/blah

That's happy!
# checkpc -f
Warning - permissions of 'blah' are 0755, not 0600
Warning - 'if' filter '/var/spool/lpd/epson600/blah' does not have execute perms

Hmm, in the blue corner we have checkpc-wants-0755 and in the red corner
we have its evil twin, checkpc-wants-0600, who's gonna win? Get your
credit card handy and call our operator now and subscribe to the PPV.

round 1:

ls -l /var/spool/lpd/epson600/blah
-rw---1 daemon   lp 14 Apr  4 09:05 /var/spool/lpd/epson600/blah

The moral to the story is bad guys always win.

  - Craig

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: [tburnus@physik.fu-berlin.de: Bug#140033: lprng: [PATCH] lprng should use the libwrap library (/etc/hosts.{allow,deny})]

2002-03-26 Thread Craig Small

Hello Patrick,
  Here is a patch from the SuSE folks that allows you to use libwrap.
  
- Forwarded message from Tobias Burnus [EMAIL PROTECTED] -

Subject: Bug#140033: lprng: [PATCH] lprng should use the libwrap library
(/etc/hosts.{allow,deny})
Reply-To: Tobias Burnus [EMAIL PROTECTED], [EMAIL PROTECTED]
Resent-From: Tobias Burnus [EMAIL PROTECTED]
Resent-To: [EMAIL PROTECTED]
Resent-CC: Craig Small [EMAIL PROTECTED], [EMAIL PROTECTED]
Resent-Date: Tue, 26 Mar 2002 18:48:04 GMT
Resent-Message-Id: [EMAIL PROTECTED]
X-Debian-PR-Message: report 140033
X-Debian-PR-Package: lprng
X-Debian-PR-Keywords:
From: Tobias Burnus [EMAIL PROTECTED]
To: Debian Bug Tracking System [EMAIL PROTECTED]
Resent-Sender: Debian BTS [EMAIL PROTECTED]
X-Spam-Status: No, hits=1 required=5 tests=FORGED_RCVD_FOUND,BUGS_DEBIAN_O
RG,TRACKER_ID

Package: lprng
Version: 3.8.9-1

From SuSE lprng I optained this patch which works like a charm:

diff -ruN LPRng-3.8.5.orig/src/Makefile.in LPRng-3.8.5/src/Makefile.in
--- LPRng-3.8.5.orig/src/Makefile.inWed Jan 23 01:04:35 2002
+++ LPRng-3.8.5/src/Makefile.in Mon Jan 28 22:58:45 2002
@@ -253,7 +253,7 @@
$(LINK) $(LIBLPR_OBJS) -rpath ${libdir}
 
 lpd: $(LPD_OBJS) liblpr.la
-   $(LINK) ${LPD_OBJS} liblpr.la $(LIBS)
+   $(LINK) ${LPD_OBJS} liblpr.la $(LIBS) -lwrap
 lpr: $(LPR_OBJS) liblpr.la
$(LINK) ${LPR_OBJS} liblpr.la $(LIBS)
 lpq: $(LPQ_OBJS) liblpr.la
diff -ruN LPRng-3.8.5.orig/src/common/lpd.c LPRng-3.8.5/src/common/lpd.c
--- LPRng-3.8.5.orig/src/common/lpd.c   Wed Jan 23 02:01:17 2002
+++ LPRng-3.8.5/src/common/lpd.cTue Jan 29 14:28:13 2002
@@ -44,6 +44,10 @@
 
 #include lpd.h
 
+#include tcpd.h
+int allow_severity = LOG_INFO;
+int deny_severity = LOG_WARNING;
+
 / ENDINCLUDE /
 
 /***
@@ -490,6 +494,20 @@
err = errno;
DEBUG1(lpd: connection fd %d, newsock );
if( newsock  0 ){
+/*
+ * libwrap/tcp_wrappers:
+ * [EMAIL PROTECTED], Mon Jan 28 2002
+ */
+
+   struct request_info wrap_req;
+
+   request_init(wrap_req, RQ_DAEMON, lpd ,
RQ_FILE, newsock, NULL);
+   fromhost(wrap_req);
+   openlog(lpd, LOG_PID, LOG_LPR); /* we
syslog(3) initialized, no closelog(). */
+   if (hosts_access(wrap_req)) {
+   /* We accept. */
+   syslog(LOG_INFO, connection from %s,
eval_client(wrap_req));
+
pid = Start_worker( server, args,
newsock );
if( pid  0 ){
LOGERR(LOG_INFO) _(lpd: fork()
failed) );
@@ -497,6 +515,13 @@
} else {
DEBUG1( lpd: listener pid %d
running, pid );
}
+   } else { /* we do not accept the connection:
*/
+   syslog(LOG_WARNING, connection refused
from %s, eval_client(wrap_req));
+   }
+/* 
+ * end libwrap
+ */
+
close( newsock );
Free_line_list(args);
} else {


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux fantasio 2.4.16 #1 Fri Dec 14 14:22:43 CET 2001 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages lprng depends on:
ii  debconf   1.0.26 Debian configuration management sy
ii  libc6 2.2.5-3GNU C Library: Shared libraries an


- End forwarded message -

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Err? I have been kicked off

2002-03-24 Thread Craig Small

I haven't received email from this list for 4 days now, is it still
alive?

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: lpq -a and -Pall wierdness

2002-03-21 Thread Craig Small


I'm getting some wierd bug reports about lpq -a and lpq -Pall

In 3.8.9 it looks like -a behaves itself, so something changed for the
better from 3.8.8., good!

lpq -Pall only shows local printers, not remote printers (-a shows
both).
Now, for fun, put in a printer called all and now you get to see
remote printers not local ones. (OK there probably shouldn';t be a
printer called all but still)

More info at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=138470repeatmerged=yes
and you can blame Zed Pobre [EMAIL PROTECTED] 

I'll do some more debugging to figure out a bit more what is going on.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: parallel port is in unidirectional mode - urgent

2002-03-12 Thread Craig Small

On Tue, Mar 12, 2002 at 12:02:27AM -0800, sidharth bora wrote:
please can some body tell me how to make the
 parallel port in bidirectional mode.Patrick Sir, gave
 the answer as i am not getting  page count from laser
 jet 5m.

Check your computer's BIOS, there are different modes in there (or if
you have ancient ~486 era you have no choice and no bidirectional)

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: lpd_port and remote printers

2002-03-03 Thread Craig Small

On Sat, Mar 02, 2002 at 05:59:40PM -0800, Patrick Powell wrote:
 
 I was watching a documentary about poisonous jellyfish in Australia's
 Great Barrier reef last night...  After reading the 'lpd_port=0',
 I had an entertaining vision of trolling the reef using the user
 who did this one as bait.

The Box Jellyfish no doubt, nasty piece of work.

You need lpd_port=0 if you want to disable incoming tcpip connections,
which would be more likely on a client machine than a server machine

eg:

pc1(lpd client)--unix--pc1(lpd server)--tcpip--..
  ..--pc2(lpd server)--printer

You dont want anyone to telnet to port 515 on pc1.  There's no reason to
have 515 open on pc1.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: lpq -a still does not work in 3.8.8

2002-03-02 Thread Craig Small

On Fri, Mar 01, 2002 at 02:35:13PM -0800, Patrick Powell wrote:
  From [EMAIL PROTECTED] Mon Feb 25 22:11:22 2002
  Date: Tue, 26 Feb 2002 16:26:19 +1100
  To: [EMAIL PROTECTED]
  Subject: LPRng: lpq -a still does not work in 3.8.8
  From: [EMAIL PROTECTED] (Craig Small)
 
  # lpq -a
  Printer: epson600 - cannot get status from device 'NULL'
  Printer: lp - cannot get status from device 'NULL'
 
 I have been unable to duplicate this.  Can you send me the printcap?
epson600|Epson 600 Color
:rp=epson600
:rm=203.41.228.19
:sd=/var/spool/lpd/epson600

lp|blah
:lp=/dev/lp1
:sd=/var/spool/lpd/blah

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: lpq -a still does not work in 3.8.8

2002-02-26 Thread Craig Small

On Wed, Feb 27, 2002 at 09:01:34AM +1100, Antony Healey wrote:
 Hi Craig,
 
 Don't know if this helps, but lpq -a using LPRng-3.8.8 on Tru64 40.g works
 for me.
 
Hmm, what's your configure string look like?  Mine is pretty complicated
because I need to follow lots of FS standards.

./configure --disable-kerberos_checks --with-groupid=lp 
--with-lockfile=/var/run/lprng/lpd --prefix=/usr --sysconfdir=/etc/lprng 
--exec-prefix=/usr --libexecdir=\$${exec_prefix}/lib/lprng  
--mandir=\$${prefix}/share/man --disable-gdbm \
--with-unix_socket_path=/var/run/lprng/socket


-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: lpq -a still does not work in 3.8.8

2002-02-25 Thread Craig Small

# lpq -a
Printer: epson600 - cannot get status from device 'NULL'
Printer: lp - cannot get status from device 'NULL'

This is lprng 3.8.8

This is what a D1 gives:

2002-02-26-16:25:42 [3601]  Initialize: /dev/null fd 3
2002-02-26-16:25:42 [3601]  initsetproctitle: doing setup
2002-02-26-16:25:42 [3601]  initsetproctitle: Argv 0xbbe4, LastArgv 0xbfee
2002-02-26-16:25:42 [3601] lpq  Setup_uid: OriginalEUID 1000, OriginalRUID 1000
2002-02-26-16:25:42 [3601] lpq  Setup_uid: OriginalEGID 1000, OriginalRGID 1000
2002-02-26-16:25:42 [3601] lpq  Setup_uid: Original RUID/EUID 1000/1000, RUID/EUID 
1000/1000
2002-02-26-16:25:42.018 [3601] lpq  Setup_configuration: starting, Allow_getenv 0
2002-02-26-16:25:42.018 [3601] lpq  Setup_configuration: Configuration file 
'/etc/lprng/lpd.conf'
2002-02-26-16:25:42.018 [3601] lpq  Setup_configuration: Require_configfiles_DYN '1'
2002-02-26-16:25:42.018 [3601] lpq  Get_config: required '1', '/etc/lprng/lpd.conf'
2002-02-26-16:25:42.019 gonzo [3601] lpq  Get_local_host: ShortHost_FQDN=gonzo, 
FQDNHost_FQDN=gonzo.eye-net.com.au
2002-02-26-16:25:42.020 gonzo [3601] lpq  Is_server 0, DaemonUID 1, DaemonGID 7, UID 
1000, EUID 1000, GID 1000, EGID 1000
2002-02-26-16:25:42.020 gonzo [3601] lpq  Setup_configuration: Host 
'gonzo.eye-net.com.au', ShortHost 'gonzo', user 'csmall'
2002-02-26-16:25:42.020 gonzo [3601] lpq  Build_printcap_info: list-count 0, 
raw-count 6
2002-02-26-16:25:42.020 gonzo [3601] lpq  Build_printcap_info: list-count 2, 
raw-count 0
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Dump_line_list: lpq- Config - 
0x804c248, count 2, max 102, list 0x8051fe0
2002-02-26-16:25:42.020 gonzo [3601] lpq  all:   [ 0] 0x804d7d0 ='lpd_port=0'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all:   [ 1] 0x8052180 ='mc=2'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: lpq: all printers
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Get_all_printcap_entries: starting
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Select_pc_info: looking for 'all', 
depth 0
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Select_pc_info: wildcard trying 'blah'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Select_pc_info: wildcard trying 
'epson600'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Select_pc_info: wildcard trying 'lp'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Select_pc_info: returning 'NULL'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Dump_line_list: 
Get_all_printcap_entries- All_line_list - 0x804c288, count 2, max 102, list 0x80502f0
2002-02-26-16:25:42.020 gonzo [3601] lpq  all:   [ 0] 0x8050c20 ='epson600'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all:   [ 1] 0x8050490 ='lp'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all: Dump_line_list: lpq- All_line_list - 
0x804c288, count 2, max 102, list 0x80502f0
2002-02-26-16:25:42.020 gonzo [3601] lpq  all:   [ 0] 0x8050c20 ='epson600'
2002-02-26-16:25:42.020 gonzo [3601] lpq  all:   [ 1] 0x8050490 ='lp'
2002-02-26-16:25:42.020 gonzo [3601] lpq  epson600: Show_status: start
2002-02-26-16:25:42.021 gonzo [3601] lpq  lp: Show_status: start
2002-02-26-16:25:42.021 gonzo [3601] lpq  lp: lpq: done
2002-02-26-16:25:42.021 gonzo [3601] lpq  lp: lpq: tempfiles removed
2002-02-26-16:25:42.021 gonzo [3601] lpq  lp: lpq: after loop
2002-02-26-16:25:42.021 gonzo [3601] lpq  lp: lpq: cleaning up
2002-02-26-16:25:42.021 gonzo [3601] lpq  lp: cleanup: done, exit(0)
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: When localhost != localhost

2002-02-21 Thread Craig Small

Hello Patrick,
  Minor bug but you may want to look into it one day.  It may point to
something else not quite right security-wise.

Change your /etc/hosts tosomething like you can see in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=133048repeatmerged=yes

ie, 127.0.0.1 doesn't resolve to localhost and the permissions start to
break down even with the unix socket.

I admit it is a pretty wierd setup though.

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: running lprng as non-root user

2002-02-16 Thread Craig Small

On Fri, Feb 15, 2002 at 10:32:13AM -0500, William R. Knox wrote:
 The client parts of LPRng are often installed setuid root so that they can
 send from a privileged port (something in the RFC states that requests
 need to be issued from the range 721-731 - most lpd servers do not enforce
 that, but that's why the client would be installed as root).
 

This is true but as Patrick would no doubt say for every implementation
that adhered to this part of the standard there would be another that
didn't.  LPRng for instance will do either.

On Debian installations, for example, the default is not to setuid root
the binaries as for most installations you don't need it.  If you don't
need setuid root binaries then don't make them that way.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: running lprng as non-root user

2002-02-14 Thread Craig Small

On Thu, Feb 14, 2002 at 04:21:57PM +, Toby Blake wrote:
 Quick question - is it possible to run lprng (both client and server
 parts) as a non-root user?
 
 Obviously I'd need to change the lpd port number and directories 
 used.
 
 I need to do this on a temporary basis in order to test some things
 out on a machine that's already running lpd, etc.

Assuming you do those port and directory permission things I'd say it is
very likely.  You only need root to access 1024 port and get to the
directories.

I'm not sure what you mean by client parts, if you are talking about the 
client programs then they (generally, let's assume you dont have some
wierdo setup) should run as non-root.

  - Craig

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: LPRNG: problem with LPRng 3.8.6

2002-02-12 Thread Craig Small

On Tue, Feb 12, 2002 at 03:58:00PM -0500, Eric Hausgaard wrote:
 When Compiling and installing the latest version, the package compiles
 fine, however when I install it, I get this error message:
 
 [ROOT][romulus{3:53pm}/usr/local/temp/LPRng-3.8.6/src] ./checkpc -f
 checkpc: WARNING- LPD_CONF environment variable option enabled
   and running as root!  You have an exposed security breach!
   Recompile without -DGETENV or do not run clients as ROOT
 
 If I install it, the lpd daemon dies and then won't restart.

Petri Kaukasoina has already mention this and the very simple fix.
http://groups.yahoo.com/group/lprng/message/9333

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Re: LPRng 3.8.6 Release

2002-02-10 Thread Craig Small

On Sat, Feb 09, 2002 at 01:08:47PM +0200, Petri Kaukasoina wrote:
 On Fri, Feb 08, 2002 at 07:42:24PM -0800, Patrick Powell wrote:
  Version LPRng-3.8.6 - Fri Feb  8 19:31:52 PST 2002
 
 lpd didn't want to start without this...
 
 --- LPRng-3.8.6/src/Makefile.in.orig  Mon Feb  4 00:48:28 2002
 +++ LPRng-3.8.6/src/Makefile.in   Sat Feb  9 13:02:35 2002
 @@ -119,7 +119,7 @@
  # Define G ETENV to allow the LPD_CONFIG environment
  #  variable to be used as the name of a configuration file.  In non-testing
  #  systems,  this is a security loophole.
 -CFLAGS:= $(CFLAGS) -DGETENV=\1\ -Wall -Werror
 +#CFLAGS:= $(CFLAGS) -DGETENV=\1\ -Wall -Werror
  
  # Set location of configuration, permissions, and printcap file
  #

Boy doesn't it complain a lot otherwise.  I had no idea what its problem
was until I saw this email. Thamks Petri.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: 3.8.6 still has lpq -a problem

2002-02-10 Thread Craig Small

On Fri, Feb 08, 2002 at 07:42:24PM -0800, Patrick Powell wrote:
 Version LPRng-3.8.5 - Tue Jan 22 15:58:46 PST 2002
 
   Added a minor fix to lpq so that it will check all queues.
(Courtesy of Jim Trocki [EMAIL PROTECTED])

Is this supposed to fix this problem?

# lpq -a
Printer: lp - cannot get status from device 'NULL'
Printer: epson800 - cannot get status from device 'NULL'
Printer: espon3000 - cannot get status from device 'NULL'

If so, 3.8.6 still does it.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: LPRng 3.8.6 Release

2002-02-09 Thread Craig Small

On Fri, Feb 08, 2002 at 07:42:24PM -0800, Patrick Powell wrote:
 Version LPRng-3.8.6 - Fri Feb  8 19:31:52 PST 2002

Not a biggie Patrick, but could you re-crank libtool when you get a
chance?  I'll need libtool 1.4b or better.  Not a biggie, i just run
libtoolize --force --copy on my local copy.

Without going into the murky details of ld.so, Debian, rpaths and why
Solaris' linker sucks, 1.4b libtool apparently fixes things for me.

I don't recall hearing that the binaries are now dynamically linked
to liblpr which threw be a bit, but its fine now.

Oh, BTW I think your config.guess is still a bit old.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: The various releases

2002-02-04 Thread Craig Small

Hello Patrick,
  At least for me (because I have to package it for Debian) it would be
great to know when a version of LPRng is released.  I only knew 3.8.5
was released because I saw it on the website.  A few days ago I saw you
talking about 3.8.6 but that isn't on the website.

All I need is a simple email, like
echo Hello World | mailx -s 'LPRng 3.8.6 Released' [EMAIL PROTECTED]

that would do it, then i know it is downloaidng and packaging time and
that I haven't downloaded a test package.  Ideally having the last
changelog block is better because I can prioritise it better, but that
will do.

Thanks
  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Local and Remote printer names must be the same

2002-01-31 Thread Craig Small

Second time around for Patrick's queue.  For those of you who have more
reliable hard drives, you can ignore it.

BTW, you cannot use force_localhost as you need filters, is the right
way to use a server and client bits?

Anyway..

A very wierd bug has cropped up from 3.8.2 to 3.8.4, my thanks to
Guy T. Rice [EMAIL PROTECTED] for pointing this out to
me.

Take a printcap like this:

lp|lj2100|HP LaserJet 2100TN:\
:sd=/var/spool/lpd/lj2100:rp=raw:rm=taurus:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/etc/magicfilter/psonly1200-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

lpq says this:

Printer: lp is raw@localhost
Printer: raw@wufei - ERROR: spool queue for 'raw' does not exist on server wufe
   non-existent printer or you need to run 'checkpc -f'

lp is not raw@localhost, lp is raw@taurus !

But changing the printcap to below fixes it:
lp|raw|lj2100|HP LaserJet 2100TN:\
:sd=/var/spool/lpd/lj2100:rp=raw:rm=taurus:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/etc/magicfilter/psonly1200-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

See the raw is now included in the printcap entry?

I get lots and lots of reports about these problems.  I don't know if it
is a lprng bug or a problem with the printcap.  I'd love to have a
canned answer to people who have this configuration in their printcap.
Remember, the first printcap worked with 3.8.2

  - Craig

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Local and Remote printer names must be the same

2002-01-30 Thread Craig Small


A very wierd bug has cropped up from 3.8.2 to 3.8.4, my thanks to
Guy T. Rice [EMAIL PROTECTED] for pointing this out to
me.

Take a printcap like this:

lp|lj2100|HP LaserJet 2100TN:\
:sd=/var/spool/lpd/lj2100:rp=raw:rm=taurus:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/etc/magicfilter/psonly1200-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

lpq says this:

Printer: lp is raw@localhost
Printer: raw@wufei - ERROR: spool queue for 'raw' does not exist on server wufe
   non-existent printer or you need to run 'checkpc -f'

lp is not raw@localhost, lp is raw@taurus !

But changing the printcap to below fixes it:
lp|raw|lj2100|HP LaserJet 2100TN:\
:sd=/var/spool/lpd/lj2100:rp=raw:rm=taurus:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/etc/magicfilter/psonly1200-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

See the raw is now included in the printcap entry?

I get lots and lots of reports about these problems.  I don't know if it
is a lprng bug or a problem with the printcap.  I'd love to have a
canned answer to people who have this configuration in their printcap.
Remember, the first printcap worked with 3.8.2

  - Craig

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: bounce queues,tcp ports and documentation

2002-01-21 Thread Craig Small

Hello,
  I've got a Debian user with a problem with printing to a remote
printer who also needs a filter.  He's using the lpd_bounce flag in it,
I suspect not breaking up the client and server into two entries is
causing problems.

First of all, can you use bounce queues with the TCP port turned off?
What is the client entry in that case?

I was looking at
http://www.lprng.com/LPRng-HOWTO-Multipart/lpdbounce.htm for some help
and will  make some comments.

I think it needs some more words to explain things better, suggestions
include:
  * How the job weaves it way through, something like: user types lpr
filename, lpr finds the first line in the printcap and uses this
because the second entry is for servers only, it sends the job to
printer bounce at bouncehost (what is bouncehost? localhost?).
server takes job and (for some reason) chooses second printcap
entry. it uses the lpf filter and stores the job temporarily
in (/var/spool/lpd/bounce ??) before sending onto remote printer
at lp at server with hostname remote.
 * What other flags effect it? like lpd_port in lpd.conf or 
   force_localhost.
 * A warning that not having the first line and having no server in
   the second will break things.
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: lprng: lpq -a problem

2002-01-18 Thread Craig Small

I get this myself, lpr -a is broken.

- Forwarded message from [EMAIL PROTECTED] -
Package: lprng
Version: 3.8.4-2
Severity: normal

-a option for lpq comming with 3.8.4 isn't usable :

# lpq -as
Printer: lp - cannot get status from device 'NULL'
Printer: lp2 - cannot get status from device 'NULL'
Printer: lp22 - cannot get status from device 'NULL'
Printer: lps - cannot get status from device 'NULL'
Printer: hp4 - cannot get status from device 'NULL'

While lpq from 3.7.x (lpd is from 3.8.4) gets an answer:

# /tmp/lpq -as
lp@mirek 0 jobs
lp2@mirek 0 jobs (dest lp@mirek)
lp22@mirek 0 jobs (dest lp@mirek)
lps@mirek 0 jobs (dest lp@mirek)
hp4@mirek 0 jobs (dest hplj4@dionizos)

Mirek

-- System Information
Debian Release: 3.0
Kernel Version: Linux mirek 2.4.8-ac4 #1 Tue Aug 14 15:39:09 CEST 2001 i586 unknown

Versions of the packages lprng depends on:
ii  debconf1.0.25 Debian configuration management system
ii  libc6  2.2.4-7GNU C Library: Shared libraries and Timezone


- End forwarded message -

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Underscore or no underscore?

2002-01-11 Thread Craig Small

This had me going for a while, minor stuff but so annoying.  CHANGES
uses unix_socket, configure uses unixsocket.  configure wins but is not
the obvious place to look initially.

./configure --help | grep unix
  --enable-unixsocket   add unix socket for localhost connections
  --with-unixsocketpath=DIR unix socket path (default /var/run/lprng)

grep unix CHANGES 
   --enable-unix_socket  (default disabled)
   --with-unix_socket_path=PATH  (default /dev/lprng)

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Deep distress and begging for guidance

2002-01-05 Thread Craig Small

On Sat, Jan 05, 2002 at 02:17:45AM -0800, [EMAIL PROTECTED] wrote:
 I'm trying to set up an HP DeskJet 500, I have at least three other
 printers that I'll need to deal with soon, but I'd feel more confident if
 I could get just one to work first.
 
 Relevant details:
 Debian2.2(potato), LPRng-3.6.12, ghostscript 5.10
Hello Larry,
  I am the maintainer of the Debian LPRng packages.  By some coincidence
up until about a month ago my primary printer was a HP DJ500.  They
understand ascii and some PCL.

What are you trying to print? I assume a postscript page?  Are you sure
ghostscript is working and is sending the right sort of file to the
printer?

Try printing a text file first, that will make sure all the channels etc
are right.  It could be that the file is going to the printer and the
printer goes, huh? and dumps it.  A good way to annoy someone who is not
aware of this is give them a text file and a postscript-only printer.
You get lots of blank pages and cursing!
Then do the opposite, cat a PCL file direct to the port.  Your printcap
is pretty simple so its basically just sending the file as is.

BTW, I hope you have the latest lprng running there Larry, the older
3.6.12's had a security bug in them.  You should be running 3.6.12-8
which is the 3.6.24 security patches backported to the Debian stable
dist.  It will stop the syslog() overflow hack and the NLSPATH hack.

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: socket in /dev vs. /var/run [was Re: LPRng: Interesting Packages...]

2001-12-20 Thread Craig Small

On Thu, Dec 20, 2001 at 07:00:20PM -0500, Alan Sundell wrote:
 an option to ./configure, but it might be nice to make the default
 location of the UNIX socket something in /var/run.
 
 The FHS (if you care about the FHS) demands that transient sockets go
 there.  Even if you don't care about the FHS, there are a couple of good
 reasons.  If lpd is going to automatically create the socket, then
 putting it in /var/run would make things work for people with / mounted
 read-only, and putting it in a subdir of /var/run would allow the socket
 to be created by a non-root-privileged daemon.

When the this release hits Debian, it will go in /var/run/lprng  
That is where the pid is found too, due to a --with-lockfile
I'm hoping there will be a socket configure flag too.

Doing this will mean lprng follows the FHS as well as Debian convention,
pretty much any daemon that has a socket has it in /var/run/package

For those that haven't seen the FHS, its found at http://www.pathname.com/fhs/
The FHS people like to be annoying so they don't give you a HTML version
of the document.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Interesting Packages, state of the art, and some comments

2001-12-18 Thread Craig Small

On Mon, Dec 17, 2001 at 09:20:09PM -0800, Patrick Powell wrote:
 What BENEFIT is there in doing this?
 
 First,  you get all enthusiastic about security... and permissions...
 and then you discover that you have to run your clients SETUID root...
 Otherwise any program can connect to your UNIX socket...
 and then you get unenthusiastic again.  I hate testing security.
 Beating the TCP/IP stuff to the ground was bad enough.
Err, no it doesn't have to be setuid root.

postgresql has a unix socket and, as far as I can tell, doesn't have
setuid root program.  I cannot see why you want to restrict who can
connect to the unix socket; I have this program called telnet that can
cicumvent lpr on the TCP/IP socket.  If you do want to restrict, why not
make it setgid something instead.

The point is that people need lpd to print to their printer.  They don't
need a TCP/IP socket open usually.  Of course some people do need it,
just like they need remote postgresql connections.  But if there is no
TCP/IP socket, there is no son of ramen worm problem for that box.

 The overhead difference in using TCP/IP over a UNIX domain socket
 in most systems is trivial.  In fact,  some systems FAKE sockets
Exactly, you wouldn't do it for this unless you were a speed freak. Or
you wanted to waste your time.

 And while you can get the 'local' benefit of 'knowing who the user
 is' at the local level,  when you send to a remote site,  you lose
Which, postgresql uses.  I don't know how clever it is but it does know,
or thinks it knows, the uid of the local user.  Having a local Unix
socket assists the security of 'this box', not the 'box over there'.
At the moment you have no choice, its either printing and TCP/IP socket
or neither of them.

 this... unless, of course, you use encryption.  And now you need
 end to end encryption/authentication.  Or trust tranference.
Yes, then you end up in the evil world of kerberos and friends.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: [jamie@audible.transient.net: Bug#123348: lprng ifhp no longer want to play nice - kinda]

2001-12-11 Thread Craig Small

This is a bug report I have recieved from a Debian user.  I suspect there
may be some interaction between the two programs that is different now.
I have also attached his next message that has an update.

- Forwarded message from Jamie Heilman [EMAIL PROTECTED] -

Subject: Bug#123348: lprng  ifhp no longer want to play nice - kinda
Reply-To: Jamie Heilman [EMAIL PROTECTED],
[EMAIL PROTECTED]
Resent-From: Jamie Heilman [EMAIL PROTECTED]
Resent-To: [EMAIL PROTECTED]
Resent-Cc: Craig Small [EMAIL PROTECTED]
Resent-Date: Tue, 11 Dec 2001 02:48:03 GMT
Resent-Message-ID: [EMAIL PROTECTED]
X-Debian-PR-Message: report 123348
X-Debian-PR-Package: lprng
X-Debian-PR-Keywords: 
From: Jamie Heilman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Resent-Sender: Debian BTS [EMAIL PROTECTED]
X-Sorted: Debian

Package: lprng
Version: 3.8.1-1

Package: ifhp
Version: 3.4.4-1

Somewhere around lprng 3.8.0 something when horribly awry between the
communication of ifhp and lprng.  I've been using the following
printcap for two printers for months without any problems, and now
they both exhibit very odd behavior.

clj4500|HP Color LaserJet 4500
:lp=clj4500%9100
:sd=/var/spool/lpd/clj4500
:filter=/usr/lib/filters/ifhp
:sh:ifhp=model=hp4500

hplj6p|HP LaserJet 6P
:lp=/dev/lp0
:sd=/var/spool/lpd/hp6p
:filter=/usr/lib/filters/ifhp
:sh:ifhp=model=hp6p

The 6P doesn't have a postscript simm so I had to modify the ifhp.conf
to include ghostscript converters for everything but raw pcl, those
seem to still work fine though, its just the final sending of the data
to the printer that bombs out.  So here's where it gets odd, on the 6P
I couldn't print anything, all I ever got from the printer was a
response of,
 Filter_status: getting sync using 'pjl echo' at 18:07:48.544
 Filter_status: no sync response from printer at 18:07:48.544
It would try 3 times and finally remove the job after 3 failures.  So
I added sync@ to my description, then it complained of no pagecount,
so I added pagecount@ (keep in mind this all worked swimingly until
recently without any of the mods) - at this point it started
complaining about not being able to read the device.  I rolled lprng
back to the last 3.7 version but it didn't help either which made me
suspect hardware failure.  I got fed up and moved the printer to a
different box.  At the time I figured it was a parallel port issue.
But then Color LaserJet 4500 started acting weird too and now I'm
really puzzled.  The clj4500 still prints PostScript files great - but
now it if its sent plaintext it starts handing me the 'no sync
response from printer' bit.  This box is using its ethernet port and
has always been pretty robust.  My only thought is that something
changed between the interaction of filters, specifically ifhp, and
lprng recently and its caused a corruption of some kind that maybe
persists between queued jobs (the only way I can explain lprng 3.7 not
fixing the issue).  Anyway, there's a newer version of ifhp out, it
might fix the problems, it might not, but I thought I'd throw this out
there.

-- 
Jamie Heilman   http://audible.transient.net/~jamie/
...thats the metaphorical equivalent of flopping your wedding tackle 
 into a lion's mouth and flicking his lovespuds with a wet towel, pure 
 insanity...   -Rimmer

- End forwarded message -


- Begin forwarded message -
From [EMAIL PROTECTED]  Wed Dec 12 06:27:21 2001
Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: from audible.transient.net (audible.transient.net [64.81.171.127])
by fozzie.eye-net.com.au (Postfix) with SMTP id 05E41D6029
for [EMAIL PROTECTED]; Wed, 12 Dec 2001 06:26:54 +1100 (EST)
Received: (qmail 17133 invoked from network); 11 Dec 2001 19:26:40 -
Received: from stink-foot.audible.transient.net (HELO stink-foot.?none?) (192.168.2.42)
  by audible.transient.net with SMTP; 11 Dec 2001 19:26:40 -
Received: (nullmailer pid 22713 invoked by uid 1000);
Tue, 11 Dec 2001 19:26:46 -
Date: Tue, 11 Dec 2001 11:26:46 -0800
From: Jamie Heilman [EMAIL PROTECTED]
To: Craig Small [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Bug#123348: lprng  ifhp no longer want to play nice - kinda
Message-ID: [EMAIL PROTECTED]
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: [EMAIL PROTECTED]
User-Agent: Mutt/1.3.24i
X-Sorted: Debian
Status: RO
Content-Length: 1422
Lines: 27

Craig Small wrote:

 Would you mind if I forward this bug report to the upstream maintainer?
 He's the author for both these packages.

Not at all, you may want to append the followup which I present now -
after claiming success of postscript printing (and only postscript) to
my hp4500 I was rather annoyed to find that suddenly that stopped
working too, I managed to print a web

LPRng: 3.8.1 c comes after e?

2001-11-28 Thread Craig Small


checkpc reports this:
Pc_var_list: 'require_explicit_q' = 'require_configfiles'

Which, I think, is Patrickish for require_explicit_q is alphabetically
after require_configfiles but it appears before in the lpd.conf file.

Here is my big patch:

--- src/common/vars.c.orig  Thu Nov 29 08:35:34 2001
+++ src/common/vars.c   Thu Nov 29 08:36:01 2001
@@ -391,10 +391,10 @@
 { remove_z, 0, STRING_K, Remove_Z_DYN,0,0},
/*  report server as this value for LPQ status */
 { report_server_as, 0,  STRING_K,  Report_server_as_DYN,0,0},
-   /* require default queue to be explicitly set */
-{ require_explicit_q, 0, FLAG_K, Require_explicit_Q_DYN,0,0,0},
/*  client requires lpd.conf, printcap */
 { require_configfiles, 0,  FLAG_K,  Require_configfiles_DYN,0,0,= 
REQUIRE_CONFIGFILES},
+   /* require default queue to be explicitly set */
+{ require_explicit_q, 0, FLAG_K, Require_explicit_Q_DYN,0,0,0},
/*  retry on ECONNREFUSED error */
 { retry_econnrefused, 0,  FLAG_K,  Retry_ECONNREFUSED_DYN,0,0,1},
/*  retry making connection even when link is down */
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Do not use LPRng-3.8.0

2001-11-18 Thread Craig Small

On Fri, Nov 16, 2001 at 07:27:50AM -0800, Patrick Powell wrote:
 Cause there is a security bug in it.
 
 New release ASAP.  Even faster than ASAP...  Working on it
 right now.

Err, it looks like 3.8.1 is not that fix correct?
This email was dated Fri, 16 Nov 2001 07:27:50 -0800 (PST)

The changelog was dated Version LPRng-3.8.1 - Thu Nov 15 16:08:41 PST 2001

So... I'm guessing 3.8.1 is not what I am after.

3.8.0 is the current version in Debian testing and unstable dists, so
I'm dead-keen to get this fixed.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: calling Check_file

2001-11-15 Thread Craig Small

On Wed, Nov 14, 2001 at 06:57:07PM +0100, Richard Ems wrote:
 Still no answer to this question ...
 I'm getting the same warnings!

I suspect everyone gets this one.

 Why? 
My guess is Patrick's brain said DEBUG1 and his fingers typed WARNMSG,
common problem those nasty fingers thinking they have a mind of their
own.

line 460 of checkpc.c:

WARNMSG( calling Check_file for '%s', fix %d, cf_name, Fix );

I'd make that

DEBUG1( calling Check_file for '%s', fix %d, cf_name, Fix );

 - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: cant open /dev/lp0

2001-11-01 Thread Craig Small

On Thu, Nov 01, 2001 at 04:57:38PM -0700, David Bear wrote:
 when I attempt to run checkpc as root, it tells me it can't open /dev/lp0.
 Yet, /dev/lp0 is owned by root.lp and has 550 perms.
 
 I am using the latest lprng distribution , 3.7.4 on Caldera OL 3.1.  I do
 have cups installed as well, but killed cups lpd, and renamed the cups lp*
 commands.

Sounds like the device behind the file is not there.  You sure you have
parallel printer support in your kernel?

Can you cat to/from /dev/lp0?

Also, check lpd.* files to make sure you are really runnnig it as group
lp.

  - Craig
 any advice?
 
 
 -
 YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
 The address you post from MUST be your subscription address
 
 If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
 or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
 to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
 with:   | example:
 subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
 unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]
 
 If you have major problems,  send email to [EMAIL PROTECTED] with the word
 LPRNGLIST in the SUBJECT line.
 -

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Two small problems in 3.8.0

2001-10-20 Thread Craig Small

OK, I've mentioned that the config.* files are old already I think.

Also, why is liblpr.a and liblpr.la installed by default?  That doesn't
make sense to me unless there was a program out there (other than lprng
programs) that linked to this.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Something not well with 3.7.5 build

2001-09-16 Thread Craig Small

On Fri, Sep 14, 2001 at 01:52:00PM -0700, User Papowell wrote:
 make distclean is really brutal and removes the Makefiles
 as well.  This makes a 'clean distribution suitable for
 use with configure'.

Yup, I know, I missed the second configure in my email.  Of course
without that you get something along the lines of no makefile found.

OK, I did this, happened both on my Debian Linux i386 and Alpha boxes,
is something not detecting the type of machine correctly?

 - untar the archive, cd LPRng-3.7.5
 - ./configure
 - make
 - make distclean

and got this:

DISTRIBUTIONS/FreeBSD*; make clean
make[1]: Entering directory
`/home/csmall/debian/lprng/LPRng-3.7.5/DISTRIBUTIONS/FreeBSD-4.ports.systutils.LPRng'
Makefile:107: *** missing separator.  Stop.
make[1]: Leaving directory
`/home/csmall/debian/lprng/LPRng-3.7.5/DISTRIBUTIONS/FreeBSD-4.ports.systutils.LPRng'
make: *** [distclean] Error 2

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Compilation on 11i, revisited

2001-09-16 Thread Craig Small

On Sat, Sep 15, 2001 at 01:41:51PM -0400, Ryan Novosielski wrote:
 1) Who /is/ the LIBTOOL support group? Is that a GNU thing?
It's a group of shattered programmers who foolishly used libtool and
could never regain their sanity since.  We meet together on the first 
Tuesday of the month to console and support each other.

Usual discussions about why doesn't that flag work, how come I keep
getting version 0.0.0 for my libraries and just where the hell does it
get those files from are usually covered.  While some of the stories can be
quite horrifing, we feel it is better to get 'the libtool out' than to
keep it within you.  It is quite touching to see a newcomer come in and
hear their experiences, with the older memebers just looking at their
shoes and thinking, hey those things down there move.

Oh, and one more thing, if you drink your coffee white please remember
to bring some milk. The sugar is a bit crunchy bit still ok, sort-of.

  - Craig (libtool sufferer since April 1999)
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: lpq pauses 10 seconds

2001-09-03 Thread Craig Small

On Mon, Sep 03, 2001 at 01:51:13PM +0200, [EMAIL PROTECTED] wrote:
 I'm using lprng 3.6.12 under Debian GNU/Linux 2.2 (Potato).
OK, that's the latest in the stable dist.

 The printer is a Ricoh network printer, and it works without any problem
 with other computers or if I use rlpq to query the queue.
 
 Now when I use lprng's lpq, it prints all the info, then pauses 10 seconds
 before giving me a last blank line and my prompt back.
It sounds like to me that your system is trying to query the remote
printer for status and having trouble with it.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: curious setuid

2001-09-02 Thread Craig Small

On Sat, Sep 01, 2001 at 01:54:47PM -0700, User Papowell wrote:
 
 NO!  I am puzzled.  Was it installed this way by default?

Not in the Debian packages, but the build process strips the s/guid bits
out until you explicity put them back in (since around 3.6.20 - July
2000)

I believe the default build does set these flags.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Latest Release of LPRng, ifhp, and LPRngTool

2001-09-02 Thread Craig Small

On Sun, Sep 02, 2001 at 04:58:30PM -0700, User Papowell wrote:
 Please check out the LPRng Web site:
 
 http://www.lprng.com
Something not well with the DNS:

fozzie$ host www.lprng.com
Nameserver not responding
www.lprng.com A record not found, try again
fozzie$ ns lprng.com
lprng.com   NS  h2.a-zhost.com
fozzie$ host www.lprng.com
Nameserver not responding
www.lprng.com A record not found, try again
fozzie$

?

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Samba printing not working (but a fix)

2001-08-21 Thread Craig Small

OK, 
 In my little LPRng torture chamber, I got it printing
lprng-lprng-parallel (after realising that magicfilter was dumping
the job to a non-existent program, sigh)

Next is lprng-Win95-parallel, got that fixed too, but the HOWTO has a
bug, or the way that smbclient works has changed.

Section 11.8 says a few things and then gives this.


(
#   echo translate
echo print -
/bin/cat
) | /usr/local/bin/smbclient $server\\$service \
   $password -U $server -N -P 12

Tried it, it doesn't work (says it is printing 0 bytes)

Strangely, echo foo | /usr/local/lib/smbprint fails but if you type
/usr/local/lib/smbprint
and then type stuff it works.

Anyhow, there is now the -c flag in smbclient, so chaning the line to

/bin/cat | /usr/bin/smbclient $server\\$service $password -U $server -N -P 
-c 'print -' 12

Makes it happy.  It seems lprngtool uses something like this too.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: 3.7.5?

2001-08-18 Thread Craig Small

On Sat, Aug 18, 2001 at 03:29:07AM -0400, Ryan Novosielski wrote:
 So when the heck did 3.7.5 come out anyways? Noone said anything about
 it... weird. (other than I kept seeing people talking about using it and
 when three people said it, decided it wasn't a typo :))

It's on the FTP server, but I have not packaged it up yet (for Debian)
as I wasn't sure if it was the real deal or not.  I don't recall seeing
a release email so have held off until that.

So I'd like to know too, is 3.7.5 released or alpha?

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: [bam@debian.org: Bug#108668: lpr man page wrong]

2001-08-15 Thread Craig Small

More problems with the lprng man pages and missing options.

- Forwarded message from Brian May [EMAIL PROTECTED] -
Package: lprng
Version: 3.7.4-5
Severity: normal

For instance, the man page refers to a -o option, but actually only -Z works:

[578] [scrooge:bam] ~ lpr -o sss
lpr: Illegal option 'o'

there seem to be other differences, too. eg. (if I am reading this
correctly) -k, -w, --, and -Y.

man page:

   lpr [ -A ] [ -B ] [ -b,l ] [ -C class ] [ -D debugopt ]
[ -F filterformat ] [ -G ] [ -h ] [ -i indentcols ]
[ -k ] [ -J job ] [ -K,# copies ]
[  -m mailTo ] [ -o options ] [ -P printer ] [ -Q ] [
   -r ]
[ -R remoteAccount ] [ -s ] [ -T title ] [ -U user ]
[ -V ] [ -w width ] [ -X userfile  ]  [  -Y  ]  [  -Z
   options ] [ -1,2,3,4 font ]
[ filename ...  ]

program:

Usage: lpr [-Pprinter[@host]] [-A] [-B] [-Cclass] [-Fformat] [-G] [-Jinfo]
   [-(K|#)copies] [-Q] [-Raccountname]  [-Ttitle]  [-Uuser[@host]] [-V]
   [-Zoptions] [-b] [-m mailaddr] [-h] [-i indent] [-l] [-w num ] [-r]
   [-Ddebugopt ] [--] [ filenames ...  ]


-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux scrooge 2.4.7 #1 Sun Jul 29 14:50:36 EST 2001 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages lprng depends on:
ii  debconf   0.9.93 Debian configuration management sy
ii  libc6 2.2.3-9GNU C Library: Shared libraries an


- End forwarded message -

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: checkpc sets wrong permissions?

2001-08-02 Thread Craig Small

On Thu, Aug 02, 2001 at 12:03:28AM -0400, Ryan Novosielski wrote:
 Feel free to correct me if I'm wrong, but I could swear I saw options for
 what permissions checkpc will use for the directories and files in
 lpd.conf -- I'd take a look there. Barring that... shrug
 
 I actually don't have this problem with my systems, FYI.
 
You've got filters and checkpc -f doesn't the x bit?
What version of lprng?
Problems started appearing around 3.7.4 but maybe it happened earlier.
Most users are jumping from 3.6.18? 3.6.22? due to debian releases and
then finding problems.

 - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Problems upgrading lprng.

2001-06-14 Thread Craig Small

On Fri, Jun 15, 2001 at 12:39:49PM +1000, Neil Brown wrote:
 Well, you probably know better than I the relative merits for the
 different versions of LPRng, but as far as I can tell, 3.7.4 is
 essentially unusable for network printing. It definately is if you
 want to do any client side filtering and possibly even if you don't.

It does work with network printing, plenty of people do it. I've got
lprng talking to a netgear box that speaks lpd protocol.

Pretty much all bugs reported have been configuration changes or errors.
The one where the hostname is dropping out inside lprngs checks, for
exmaple, is definitely a bug.

 What advantages does it have over 3.6.26?  And how noisy would I have
 to be to overcome your reluctance ;-)
There were plenty of things fixed in the 3.7 range, a lot of the state
and config problems were cleaned up.  The side-effect of this is a lot
of config files need changing.

I'd have to be convinced that:
 1) The bug is not due to a config file problem
 2) The bug effects a reasonable proportion of users.

Have a look at http://bugs.debian.org/lprng  initially it looks bad,
lots of people haivng problems.  But pretty much all of them have me
saying, try *this* config, does it work?  And no replies :(

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Problems upgrading lprng.

2001-06-12 Thread Craig Small

On Mon, Jun 11, 2001 at 03:51:09PM +1000, Neil Brown wrote:
 P.S If the debian lprng maintainer happens to be listen: please
  don't let woody out with 3.7.4
I'm here. The problem is that all versions have their own quirks.
Unfortunately 3.7 came about just before Patrick semi-disappeared.
3.7.4 will be in woody.  I could roll-back to 3.6.26 but no futher back,
though I would be very reluctant to do so.

  - Craig (hoping for a return of Patrick)


-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Strange checkpc behavior at 3.7.4

2001-04-20 Thread Craig Small

On Fri, Apr 20, 2001 at 05:11:15PM -0400, Rick Cochran wrote:
 I hope this isn't a stupid question.
 
 lpd.conf contains:
 
 printcap_path= /usr/local/netprint/etc/printcap
 
 irene pwd
 /usr/local/netprint/etc
 irene ls -l printcap
 -rw-r--r--   1 root systems 1325 Mar 12 12:01 printcap
You sure that lpd is running as group systems?  Usually it is
lp or daemon

 If this isn't a stupid question, I would like to know what the latest 
 stable version of LPRng is.
3.7.4 but there are some problems with it. It might be fine, it might
not.  Network printers (like the HP laserjets) seem to have more
problems but that might be just they're a bit fiddlier.

 - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: rg flag missing out of printcap

2001-04-19 Thread Craig Small

forwarded [EMAIL PROTECTED]
thankyou

Apparently LPRng implements the rg (restrict group) flag, but it is not
documented in printcap(5).

something along the lines of:
rg can be used to restrict who can print to a particular printer. 
Just add your users to a particular group and then name that group in
the rg flag.


-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: lprng remote client authorization fails for print operation

2001-04-19 Thread Craig Small

forwarded 88896
thankyou
Hi,
  I got this wierd bug submitted from a user, it seems lpd forgets about
who it is talking to when it uses lpr, all other commands work ok.

The full output is at
http://bugs.debian.org/88896 but here is a snippet.

When it is working:
[13111] Job_status  lpky: Match_ipaddr_value: host pelf.harvard.edu

When it is not.
[13115] (Server)  lpky:   ip 'NONE' port 0
[13115] (Server)  lpky: Match_ipaddr_value: host NULL
[13115] (Server)  lpky: *** Match_ipaddr_value - host  (0x0) ***
[13115] (Server)  lpky: Perms_check: 'ACCEPT REMOTEIP=131.142.42.180' -
match 1, result 'NOMATCHFOUND' default now 'ACCEPT'
[13115] (Server)  lpky: Match_ipaddr_value: host NULL

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: lpd hack attach

2001-04-18 Thread Craig Small

On Wed, Apr 18, 2001 at 06:03:52PM +, iddwb wrote:
 
 I've had two machines with the same info logged for lpr -- attached below.
 
 I think this must be some kind of hack attach against lpd.  Any
 comments?  I am running lprng 3.6.26 and it doesn't seem to have been
 affected -- other than what is logged.

It is an attempt for someone to do evil things to your lpd.
However you are running 3.6.26 which is supposedly ok.

Check http://www.cert.org/advisories/CA-2000-22.html
for details about it.

Note that there is an error with the RH info, 3.6.24-1 is vulnerable.
I believe 3.6.24-2 is not. 3.6.24 (no dash) as mentioned on the website
is ambiguous.

For Debian systems, upgrading to 3.6.26-1 or higher will fix it.

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: connection on remote printer refused

2001-03-16 Thread Craig Small

On Thu, Mar 15, 2001 at 04:30:13AM +, mridulj linux wrote:
 I have installed the latest version on LPRng and ifhp on my Debian GNU/Linux machine
 .I have also configured the lpd to run at boottime.
 But we in our company use a printer(HP6Laser) on the LAN which is attached to a 
 win98 m/c.
 
 Now in the /etc/printcap file some of my entries are:
 ---
 lp|hp:\
  :lp=:\
  :rm=192.168.0.8:\
  :rp=hp:\
RTFR, /usr/share/doc/lprng/README.Debian

} Network Printer not Printing
} 
} #1 source of all my bug reports would have to be this.  Someone has a
} networked printer (that is a printer with its own IP addres), they've upgraded
} from some old LPRng, say 3.6.12 or lower, and now the printer stops working
} and the jobs just disappear.
} 
} You probably have something in your /etc/printcap like lp=/dev/null as
} well as some rp and rm lines. Well, the job is going to the lp line and
} ending up in /dev/null, remove that line out of printcap.

 Now when I run lpq on the commandline,I get message like
 ---
 neo@matrix:~$ lpq
 Printer: lp@matrix 'hp' (dest [EMAIL PROTECTED])
  Queue: no printable jobs in queue
  Status: subserver pid 284 exit status 'JFAIL' at 22:25:41.737
  Filter_status: waiting for 192.168.0.8 to come up
 Printer '[EMAIL PROTECTED]' - cannot open connection - Connection refused
You need the old %9100 thingy in there.
try something like
 lp=192.168.0.8%9100

You might want to read part 12.8 of the LPRng howto too.

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: LPRng is 64-bit unclean

2001-03-16 Thread Craig Small

On Fri, Mar 16, 2001 at 11:54:07AM -0500, Crutcher Dunnavant wrote:
 Hey all, new member to this list.
 
 It seems that LPRng 3.7.4 is not 64 bit clean,
 where at least some of the 3.6.x series was.
 
 It segfaults during initialization.
 
 It seems that the problem is somewhere in the linelist code,
 but I have not figured out where. I have seen this problem
 on several archetectures, including the Alpha platform.

Not sure what you meant by linelist code, but this may help.

Did you read a thread about this before and did that help?
The Debian alpha porters complained about one line which killed lpd
and I reported it back here. 

Line 189 in src/common/vars.c
   /* allow LPR to make direct socket connection to printer */
   { "direct", 0, INTEGER_K, Direct_DYN,2,0},

It says initially STRING_K which is wrong.  I'm not sure if it is
supposed to be INTEGER_K or FLAG_K.

After making this change I've not heard back from the alpha folks
since. And porters are usually quite vocal about works on i386 but not
on my architecture type of bugs :)

Here's the bug report with the fix.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=82476archive=yesrepeatmerged=yes

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: [xsdg@softhome.net: Bug#88886: `lpc` command does _not_ check UID of user running it]

2001-03-07 Thread Craig Small

I've checked this out myself and yes it seems that you can do this
little trick.  We all know that the LPD protocol is horribly insecure
but is there anything that can be done about this? A simple
if user='root' then check uid=0 would help.

Of course if they've mangled the /etc/passwd file then they're probably
doing ok anyway.

Anyone heard from Patrick lately?

- Forwarded message from xsdg [EMAIL PROTECTED] -
[headers gone]

Description:
For enhanced security, I changed the username of my UID0 user (to "bob",
for the purpose of the discussion).  I recently ran `apsfilterconfig` as
bob, and it told me that I needed to run `lpc reread`, so lprng would
reload /etc/printcap and probably some other stuff.  However, the
following resulted: 

[bob@~]#lpc reread
no permission to control server

This in and of itself is a problem, because I am unable to de-queue jobs
without shutting down lprng, and manually deleting the hf*, cf*, and df*
files in the spooldir.  As per someone's suggestion, I created a user
name "root" with UID 1004, and was flabbergasted at the what occurred:

[bob@~]#su root -c "/usr/sbin/lpc reread"
lpd server pid 13294 on portal.xsdg.org, sending SIGHUP

Do remember that "root" == UID1004.  This, in my and others' opinions,
is a gaping security hole.  LPRng should determine who has permission to
run administrative commands by the User ID, and _not_ the username.

Just to deter any doubts, here is a slightly more unsettling example:

Computer printing to remote printer:
21:47:38 [xsdg@~]$cat tmp.ps | lpr -V
LPRng-3.6.26, Copyright 1988-2000 Patrick Powell,
[EMAIL PROTECTED]
sending job 'xsdg@cpp+720' to lp@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer lp@localhost
sending control file 'cfA720cpp.xsdg.org' to lp@localhost
completed sending 'cfA720cpp.xsdg.org' to lp@localhost
sending data file 'dfA720cpp.xsdg.org' to lp@localhost
completed sending 'dfA720cpp.xsdg.org' to lp@localhost
done job 'xsdg@cpp+720' transfer to lp@localhost

Computer with printer attached:
21:46:33 [bob@~]#lpq
Printer: ljet3p@portal 'HP Laserjet IIIP'
 Queue: 1 printable job
 Server: pid 13533 active
 Unspooler: pid 13535 active
 Status: error 'JWRERR' at 21:49:06.663
 Rank   Owner/ID  Class Job Files Size
Time
1  xsdg A   720 (stdin)  45613
21:47:46

21:49:10 [bob@~]#lprm -
Printer ljet3p@portal:
  checking perms 'cfA720cpp.xsdg.org'
  no permissions 'cfA720cpp.xsdg.org'

21:49:13 [bob@~]#su root

21:49:29 [root@/root]$lpq
Printer: ljet3p@portal 'HP Laserjet IIIP'
 Queue: 1 printable job
 Server: pid 13533 active
 Unspooler: pid 13535 active
 Status: error 'JWRERR' at 21:49:26.663
 Rank   Owner/ID  Class Job Files Size
Time
1  xsdg A   720 (stdin)  45613
21:47:46

21:49:31 [root@/root]$lprm -
Printer ljet3p@portal:
  checking perms 'cfA720cpp.xsdg.org'
  dequeued 'cfA720cpp.xsdg.org'

As a final reminder, please remember that "bob"==UID0, and
"root"=UID1004.

- End forwarded message -

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: REJECT NOT SERVER/no connect permissions

2001-02-06 Thread Craig Small

On Tue, Feb 06, 2001 at 11:57:15AM -0700, [EMAIL PROTECTED] wrote:
 I suppose if I could learn to read, I would be dangerous.
 
 There was one REJECT statement left in that file, the one
 Craig added.  It was just far enough away from the rest of
 them, that I missed it.  Now to write that perms file so
 that my little UNIX lan can print, but nobody else.

It's mentioned in the README.  Yes, it is added in the Debian
distribution as the general philosophy is to lock things down by default
and let the users open up the system themselves.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Serious bug in 3.7.4

2001-01-19 Thread Craig Small

G'day,
  I have received two reports (82476 and 82711) from people running on
Alphas stating that lpd dies immediately it runs.  Once of them has
found the problem. A big thnkayou to Doug.
--- src/common/vars.c~  Mon Jan 15 16:04:15 200
+++ src/common/vars.c   Mon Jan 15 16:47:46 2001
@@ -186,7 +186,7 @@
/* printers that we should query for status information */
 { "destinations", 0, STRING_K, Destinations_DYN,0,0},
/* allow LPR to make direct socket connection to printer */
-{ "direct", 0, STRING_K, Direct_DYN,0,0},
+{ "direct", 0, INTEGER_K, Direct_DYN,0,0},
/* drop root permissions after binding to listening port */
 { "drop_root", 0, FLAG_K, Drop_root_DYN,0,0},
/* exit linger timeout to wait for socket to close */

Assigning a char* to an int, enough to ruin your day on some
architectures :/

Now, i'm also getting a fair few reports from people upgrading to 3.7.4
and finding remote printing doesn't work (82501). They have things
like 
  lprng--lprng--hp printer

They're upgrading the leftmost lprng.
Could this flag problem do it?  I'm also guessing it may be the lack of
root permissions to get the low TCP ports.

I'd love to get a one-liner about under what conditions having lpc and
friends should be setuid root.

  - Craig
* If you want to see a bug report, like bug #123 go to
http://bugs.debian.org/123 all lprng bugs are at
http://bugs.debian.org/lprng
This is obviously Debian package bugs.

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: [doug@ties.org: Bug#82476: lprng 3.7.4-1 segfaults on Alpha [with patch]]

2001-01-15 Thread Craig Small

Got this from a Debian user, strange it only died on the alpha.

  - Craig
  
- Forwarded message from Doug Larrick [EMAIL PROTECTED] -
Package: lprng
Version: 3.7.4-1

Invoking /usr/sbin/lpd on an Alpha running up-to-date testing causes
an immediate segmentation fault, like this:

# /usr/sbin/lpd
Segmentation fault

This problem also causes the installation of the package to fail:

Installing new version of config file /etc/lprng/lpd.perms ...
Starting printer spooler: /etc/init.d/lprng: line 98: 25617
Segmentation fault  start-stop-daemon --start --quiet --pidfile
$PIDFILE --exec $DAEMON
dpkg: error processing lprng (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 lprng
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tracked down this problem in the debugger, and have included a
one-liner patch below.  The problem is that the configuration option
"direct" is defined to be a STRING_K type in the table listing all
such options, but it is really an integer.  When code tries to clean
up the list of configuration options, it tries to free memory that was
never malloced.  This error causes a segfault on Alpha, and probably
causes undetected harm on other platforms.

Patch follows inline.

Thanks, 
-Doug

--- src/common/vars.c~  Mon Jan 15 16:04:15 200
+++ src/common/vars.c   Mon Jan 15 16:47:46 2001
@@ -186,7 +186,7 @@
/* printers that we should query for status information */
 { "destinations", 0, STRING_K, Destinations_DYN,0,0},
/* allow LPR to make direct socket connection to printer */
-{ "direct", 0, STRING_K, Direct_DYN,0,0},
+{ "direct", 0, INTEGER_K, Direct_DYN,0,0},
/* drop root permissions after binding to listening port */
 { "drop_root", 0, FLAG_K, Drop_root_DYN,0,0},
/* exit linger timeout to wait for socket to close */


-- 
Doug Larrick  [EMAIL PROTECTED]  [EMAIL PROTECTED]  AIM: DougLarick


- End forwarded message -

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: 3.7.4 has TWO inet_ntop's

2001-01-09 Thread Craig Small


Reference is Debian bug 81707 (http://bugs.debian.org/81707)

Those guys who do the alpha compile have found another header bug.
Don't know why they always get them, but anyway...

in src/include/linkheader.h you've got two inet_ntop's

Line 15-18 has the one which is protected by a configure HAVE_INET_NTOP

But then it appears in line 50-51 too.

BTW, apparently the last variable is supposed to be socklen_t not size_t

My thanks to Paul Slootman for reporting this bug.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



LPRng: Cannot compile lprng 3.7.3 with gdbm

2000-12-27 Thread Craig Small


G'day,
  I tried to compile LPRng 3.7.3 today but had some gdbm-related errors.

gcc -g -O2 -Wall -Werror -DHAVE_CONFIG_H -I.. -I./include -I./common 
-DCHOWN=\"/bin/chown\" -DCHGRP=\"/bin/chgrp\" -DPRINTCAP_PATH=\"/etc/lprng/printcap\" 
-DLPD_PRINTCAP_PATH=\"/etc/lprng/lpd_printcap\" 
-DLPD_PERMS_PATH=\"/etc/lprng/lpd.perms\" -DLPD_CONF_PATH=\"/etc/lprng/lpd.conf\" 
-DREQUIRE_CONFIGFILES=\"1\" -DFILTER_PATH=\"\" -DLD_LIBRARY_PATH=\"\" 
-DLOCKFILE=\"/var/run/lprng/lpd\" -DCLEAR=\"/usr/bin/clear\" -DUSERID=\"daemon\" 
-DGROUPID=\"lp\" -DLOCALEDIR=\"/usr/share/locale\" -c ./common/getqueue.c -o getqueue.o
cc1: warnings being treated as errors
./common/getqueue.c: In function `Scan_queue':
./common/getqueue.c:227: warning: implicit declaration of function
`gdbm_fdesc'
./common/getqueue.c: In function `Open_gdbm':
./common/getqueue.c:2436: `GDBM_SYNC' undeclared (first use in this
function)
./common/getqueue.c:2436: (Each undeclared identifier is reported only
once
./common/getqueue.c:2436: for each function it appears in.)
./common/getqueue.c:2436: `GDBM_NOLOCK' undeclared (first use in this
function)
make: *** [getqueue.o] Error 1


I cannot find GDBM_SYNC and GDBM_NOLOCK anywhere.  I suspect this
is GDBM_FAST
#define  GDBM_FAST16/* Write fast! = No fsyncs. */

This is GNU DB library 1.7.3 on a Debian FNU/Linux system.

  - Craig
-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



  1   2   >