> From [EMAIL PROTECTED] Thu Jul 22 10:56:08 2004
> Date: Thu, 22 Jul 2004 19:55:45 +0200
> From: Mario Vanoni <[EMAIL PROTECTED]>
> To: Patrick Powell <[EMAIL PROTECTED]>
> CC: Patrick Powell <[EMAIL PROTECTED]>
> Subject: Re: LPRng: problem not mentioned in all docs, AFAIK
>
>
>
> Patrick Powell wrote:
> >>From [EMAIL PROTECTED] Sat Jul 10 09:18:50 2004
> >>Date: Sat, 10 Jul 2004 18:18:22 +0200
> >>From: Mario Vanoni <[EMAIL PROTECTED]>
> >>To: [EMAIL PROTECTED]
> >>Subject: LPRng: problem not mentioned in all docs, AFAIK
> >>
> >>- serial ports (Cyclades) with DEC vt510 screens
> >>
> >>- each vt510 has a parallel printer port connection
> >>
> >>- each vt510 has whith them his own printer
> >>
> >>- our print system imitates AT&T's lp(1) (ab)using
> >>   the BSD-lpr, it works now since >6 years
> >>   on the production machine with GNU/Linux SuSE 7.3
> >>
> >>- installed LPRng 3.7.4 from the SuSE DVD 7.3,
> >>   works under parallel and (direct) serial ports
> >>
> >>- does'nt work for printers attached on vt510's,
> >>   permission denied error on mails (user + tty!)
> >>
> >>- workaround, probably not secure and very _BAD_:
> >>   on /etc/profile[.local on SuSE 7.3]
> >>   we determine the attached port for the vt510's
> >>   LPTTY=`tty`
> >>   adding now for each type of line/terminal:
> >>   chgrp lp ${LPTTY}
> >>   all vt510 printers now works as usual
> > 
> > 
> > This is a well known problem with many (all?) Linux, *BSD, and other
> > systems that do dynamic device creation (loadable drivers) and when
the
> > /dev/XXX device entries are created dynamically.
> > 
> > The problem is that there are no (few?) facilities to cause the
ownership
> > to be set 'correctly', as it usually defaults to 0600 (owned by
root).
> > Usually you have to
> > 
> > a) do a modprobe to load the device driver.  This is common
> >    when you need a printer:
> >      modprobe lp
>
> Impossible.  Static compiled kernel, no modules allowed.
> And always the last stable from the 2.4 Linux branch.
>
> > 
> > b) chown/chmod/chgrp the /dev/xxx entries.
> >      chown lp:lp /dev/lp[0-9]*
> > 
> > Under these conditions I usually modify the /etc/init.d/lprng.sh
> > startup script and add the entries there.
> > 
> > Similar method works on *BSD systems,  using the
/usr/local/etc/rc.d/lprng.sh
> > startup script and the *BSD module loading methods.
>
> Impossible.  Production machine runs 24/7/36[56], nearly 99.999.
>
> Users do login/logout more times a day.  Login resets the permissions
> on the /dev/ttyC## Cyclades/VT510 lines.  Checked!
> Do chmod 0660 /dev/ttyC* then chgrp lp /dev/ttyC* say 06:00.
> Looks good, login and no printer working.

I suggest adding lp to the user's group:

Password:
  lp:lpid:lpgroup:...
  user1:user1id:user1group:...

Groups:

  user1group:...:user1id,lpid
  user2group:...:user2id,lpid

I assume that on open it sets the user and group on the device to
the user's UID and GID?

>
> Probably my solution is the only workaround,
> /etc/profile, executed by login with root permission,
> is able to change the permission.
>
>
> IMPORTANT QUESTION:
> Where is the limit of checkpc(8) for printcap entries?
> Now we have approx 400, due to our simulation of
> AT&T's lp(1) and his interface, and checkpc -f and
> checkpc -f -V (about the 50th entry)
> at some point freezes, after 30min Ctrl-C.
> With the new machines we will reach 1000 entries.


You can use:
   checkpc -P printer
which only does the checks for the specified printer.

>
> Many thanks for your response and time.
>
> Mario Vanoni



-----------------------------------------------------------------------------
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
-----------------------------------------------------------------------------

Reply via email to