Hi Till,

Thanks a million for the tip!  Wouldn't it be nice if the CUPS documentation
says how to add username and password to the printer URI?

One more question:
I'm playing sysadmin of the Linux box for our group, which has 6 people.
Everyone has their Windoze username and password to access the SMB printers
on the corporate NT network.  Is it possible to set things up so people will
be using their own username and password to access the printers when they
print from Linux?  Right now I followed your tip and used my own username
and password.  This means everyone will be printing with my account.  Worse,
my username and password can be seen in plain text in
/etc/cups/printers.conf!!  Not only that, every time a print job sent under
my name is completed, a message box pops up on my NT box.  This is downright
annoying, to say the least...

Thanks again, and hope you (or others) can shed some light on the password
issue.

Cheers,
Andy

> ----------
> From:         Till Kamppeter[SMTP:[EMAIL PROTECTED]]
> Sent:         Tuesday, January 09, 2001 6:23 AM
> To:   Liaw, Andy
> Subject:      Re: [newbie] problem printing to SMB from LM7.1 w/ Samba 207
> and CUPS 115
> 
> At first you should update Samba to 2.0.7-19mdk. See
> 
>    http://www.mandrakeforum.com/article.php3?sid=20001123151352
> 
> to know more about the Samba update and
> 
>    http://www.mandrakeforum.com/article.php3?sid=20001214090405
> 
> to know about how to download the package from the mirrors.
> 
> From the same place download the CUPS 1.1.5-2mdk package.
> 
> To install a printer queue using the guest account, do
> 
>    lpadmin -p <queue> -v smb://<server>/<sharename> -m <ppd> -E
> 
> and to install a printer queue using a user account, do
> 
>    lpadmin -p <queue> -v smb://<user>:<passwd>@<server>/<sharename> -m
> <ppd> -E
> 
> <queue>: Printer queue name under Linux
> <server>: Name of the NT server
> <sharename>: Name of the printer queue under Windows
> <user>: Login name of the Windows account
> <passwd>: Password of the Windows account
> <ppd>: Path and file name of PPD file (relative to
> /usr/share/cups/model/)
> 
> The web interface is also capable for setting up a Samba queue.
> 
>    Till
> 
> 
> 
> "Liaw, Andy" wrote:
> > 
> > Hi all,
> > 
> > Can some kind soul help me with this problem?  I've wasted a few days on
> > this and didn't get very far...8-<
> > 
> > We have a Compaq SP750 (dual P3 Xeon) with LM 7.1 installed and
> connected to
> > our corporate intranet (NT4).  I have been struggling to set up printing
> to
> > a SMB printer on the corporate network.  I learned the hard way that I
> had
> > to remove printpro.  In my struggle I also removed lpr, printtool and
> > rhs-filters (and others) to try and get cups to install.  I finally got
> cups
> > 1.1.5 rpm from the cups site to install.  I also upgraded samba-common,
> > samba, and samba-clients to 2.0.7.
> > 
> > I can use smbclient and smbprint (slightly modified) to print, but I
> can't
> > get cups to print.  The status says "printer lp is disabled - Unable to
> > connect to SAMBA host: Success".  I checked Till's article, and it says
> to
> > use kups.  I checked out kups, and it requires KDE2 (along with other
> > packages).  I do *not* want to upgrade to KDE2 (yet), since I have LM7.2
> > with KDE2 at home and it is not as stable as KDE1.
> > 
> > So, can someone tell me how to setup the SMB printer under cups?  Where
> do I
> > specify username and password?  Can I use some magic filter with this
> setup
> > (such as rhs-filters)?  How?
> > 
> > Also, the Linux box is being used by several people in my group.  How do
> I
> > configure the system so that everyone will be using his/her own NT
> username
> > and password to print to the SMB printer?
> > 
> > Thanks a bunch in advance!
> > 
> > Andy
> 

Reply via email to