Hi, I have a Samsung printer(ML-2010) connect to my centos 4.2 machine by usb. I want to share this printer with 3 windowsXP mchines in my LAN. Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something similar. In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help Thai ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
On Sat, 2006-03-04 at 09:51 -0500, lnthai2002@aim.com wrote:
Hi, I have a Samsung printer(ML-2010) connect to my centos 4.2 machine by usb. I want to share this printer with 3 windowsXP mchines in my LAN. Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something similar. In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help
---- windows doesn't use cups port
error message of 'access denied' doesn't necessarily mean that Windows users can't print to it (that's very confusing, I know) but that certainly means that the users can't "manage" the printer.
in samba printer share, there is an option for 'printer admin' which if the user/group is appropriate, will allow the user/group to 'manage' the printer, which is generally where the 'access denied' message comes from in a samba shared printer when looking at the 'status' from Windows 'Printers & Faxes'
Generally, I would expect the problem that you are having is that you are using 'client side' drivers and by default, cups (via samba) is offering a postscript printer.
I don't know what the specifics of a Samsung ML-2010 are but it would seem that you have 2 options...
1 - set the printer up in windows as a postscript printer, preferably using the Adobe Postscript print driver and the ppd that was created by cups on the CentOS system when you created the printer (located in /etc/cups/ppd)
or
2 - set the printer options within cups to allow 'raw' printing - which allows your samba shared non-postscript printer commands to pass through 'unmolested' to the printer (see /etc/cups/mime.types & /etc/cups/mime.convs)
All of this is summarized in the official Samba 3 HowTo... http://samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html
and things are starting to gel at the new samba wiki http://wiki.samba.org
for which printing support is here... http://wiki.samba.org/index.php/Samba_as_a_print_server
and I mention the wiki because I was drafted and am the editor of the wiki ;-)
HTH
Craig
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sat, Mar 04, 2006 at 08:14:37AM -0700, Craig White wrote:
On Sat, 2006-03-04 at 09:51 -0500, lnthai2002@aim.com wrote:
Hi, I have a Samsung printer(ML-2010) connect to my centos 4.2 machine by usb. I want to share this printer with 3 windowsXP mchines in my LAN. Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something similar. In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help
windows doesn't use cups port
Actually, you are wrong.
Windows has been supporting IPP since (at least) Windows 2000. I have a entire Windows network where all printing is done using IPP (and thus port 631). Works like a charm.
But, if you are using SMB Printing, then you are correct, it won't use port 631.
Windows actually supports various printing protocols, including SMB, IPP, LPR, HP TCP/IP (JetDirect) along others.
[]s
- -- Rodrigo Barbosa rodrigob@suespammers.org "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
-----Original Message----- From: Craig White craigwhite@azapple.com To: CentOS mailing list centos@centos.org Sent: Sat, 04 Mar 2006 08:14:37 -0700 Subject: Re: [CentOS] Do i have to open port 631 for LAN printing
On Sat, 2006-03-04 at 09:51 -0500, lnthai2002@aim.com wrote:
Hi, I have a Samsung printer(ML-2010) connect to my centos 4.2 machine by usb. I want to share this printer with 3 windowsXP mchines in my LAN. Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something
similar.
In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help
------------------------------------------------------------------------- --------------------------------- windows doesn't use cups port
error message of 'access denied' doesn't necessarily mean that Windows users can't print to it (that's very confusing, I know) but that certainly means that the users can't "manage" the printer.
in samba printer share, there is an option for 'printer admin' which if the user/group is appropriate, will allow the user/group to 'manage' the printer, which is generally where the 'access denied' message comes from in a samba shared printer when looking at the 'status' from Windows 'Printers & Faxes'
Generally, I would expect the problem that you are having is that you are using 'client side' drivers and by default, cups (via samba) is offering a postscript printer.
I don't know what the specifics of a Samsung ML-2010 are but it would seem that you have 2 options...
1 - set the printer up in windows as a postscript printer, preferably using the Adobe Postscript print driver and the ppd that was created by cups on the CentOS system when you created the printer (located in /etc/cups/ppd)
or
2 - set the printer options within cups to allow 'raw' printing - which allows your samba shared non-postscript printer commands to pass through 'unmolested' to the printer (see /etc/cups/mime.types & /etc/cups/mime.convs)
All of this is summarized in the official Samba 3 HowTo... http://samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html
and things are starting to gel at the new samba wiki http://wiki.samba.org
for which printing support is here... http://wiki.samba.org/index.php/Samba_as_a_print_server
and I mention the wiki because I was drafted and am the editor of the wiki ;-) ------------------------------------------------------------------------- ----------------------------------------------- The samsung ML-2010 does not have a postscript driver, it used a samsung language II driver that is available on windows and linux. I have read the samba-HOWTO-Collection document and config the mime.type and mine.conv to accept raw printjob. However, the instructions are hard to understand
1. Edit /etc/cups/mime.types to uncomment the line near the end of the file that has: #application/octet-... 2. Do the same for the file /etc/cups/mime.convs. 3. Add a raw printer using the Web interface. Point your browser at http://localhost:631. Enter Administration, add the printer following the prompts. Do not install any drivers for it. Choose Raw. Choose queue name Raw Queue. 4. In the smb.conf file [printers] section add use client driver = Yes, and in the [global] section add printing = CUPS, plus printcap = CUPS. 5. Install the printer as if it is a local printer. i.e.: Printing to LPT1:.(in my case /dev/usb/lp0) I did until this line 6. Edit the configuration under the Detail tab, create a local port that points to the raw printer queue that you have configured above. Example: \server\raw_q. Here, the name raw_q is the name you gave the print queue in the CUPS environment.
The line number 6 is not clear, i dont know what application they are talking about for the "Detail tab". How can i create a local port and point to the raw printer queue? My goal is simple, 1/create a raw printer queue on CENTOS to accept any PREPARED print job from any machine from the network 2/install a use samsung driver to prepare print job on CENTOS(same machine where the printer is pluged into) 3/install and use windows samsung driver on windows machines to prepare print jobs and sent them to the raw printer queue on CENTOS Hope anyone can help THAI ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
On Sat, 2006-03-04 at 22:35 -0500, lnthai2002@aim.com wrote:
-----Original Message----- From: Craig White craigwhite@azapple.com To: CentOS mailing list centos@centos.org Sent: Sat, 04 Mar 2006 08:14:37 -0700 Subject: Re: [CentOS] Do i have to open port 631 for LAN printing
On Sat, 2006-03-04 at 09:51 -0500, lnthai2002@aim.com wrote:
Hi, I have a Samsung printer(ML-2010) connect to my centos 4.2 machine by usb. I want to share this printer with 3 windowsXP mchines in my LAN. Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something
similar.
In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help
windows doesn't use cups port
error message of 'access denied' doesn't necessarily mean that Windows users can't print to it (that's very confusing, I know) but that certainly means that the users can't "manage" the printer.
in samba printer share, there is an option for 'printer admin' which if the user/group is appropriate, will allow the user/group to 'manage' the printer, which is generally where the 'access denied' message comes from in a samba shared printer when looking at the 'status' from Windows 'Printers & Faxes'
Generally, I would expect the problem that you are having is that you are using 'client side' drivers and by default, cups (via samba) is offering a postscript printer.
I don't know what the specifics of a Samsung ML-2010 are but it would seem that you have 2 options...
1 - set the printer up in windows as a postscript printer, preferably using the Adobe Postscript print driver and the ppd that was created by cups on the CentOS system when you created the printer (located in /etc/cups/ppd)
or
2 - set the printer options within cups to allow 'raw' printing - which allows your samba shared non-postscript printer commands to pass through 'unmolested' to the printer (see /etc/cups/mime.types & /etc/cups/mime.convs)
All of this is summarized in the official Samba 3 HowTo... http://samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html
and things are starting to gel at the new samba wiki http://wiki.samba.org
for which printing support is here... http://wiki.samba.org/index.php/Samba_as_a_print_server
and I mention the wiki because I was drafted and am the editor of the wiki ;-)
The samsung ML-2010 does not have a postscript driver, it used a samsung language II driver that is available on windows and linux. I have read the samba-HOWTO-Collection document and config the mime.type and mine.conv to accept raw printjob. However, the instructions are hard to understand
1. Edit /etc/cups/mime.types to uncomment the line near the end of
the file that has: #application/octet-... 2. Do the same for the file /etc/cups/mime.convs. 3. Add a raw printer using the Web interface. Point your browser at http://localhost:631. Enter Administration, add the printer following the prompts. Do not install any drivers for it. Choose Raw. Choose queue name Raw Queue. 4. In the smb.conf file [printers] section add use client driver = Yes, and in the [global] section add printing = CUPS, plus printcap = CUPS. 5. Install the printer as if it is a local printer. i.e.: Printing to LPT1:.(in my case /dev/usb/lp0) I did until this line 6. Edit the configuration under the Detail tab, create a local port that points to the raw printer queue that you have configured above. Example: \server\raw_q. Here, the name raw_q is the name you gave the print queue in the CUPS environment.
The line number 6 is not clear, i dont know what application they are talking about for the "Detail tab". How can i create a local port and point to the raw printer queue? My goal is simple, 1/create a raw printer queue on CENTOS to accept any PREPARED print job from any machine from the network 2/install a use samsung driver to prepare print job on CENTOS(same machine where the printer is pluged into) 3/install and use windows samsung driver on windows machines to prepare print jobs and sent them to the raw printer queue on CENTOS Hope anyone can help THAI
---- yeah - 6 is a bit confusing but you can actually make it simpler...
See if you can use the APW (add printer wizard) - network printer - browse for the printer and see if the printer shows up in your domain/workgroup and you can just select the printer which is the 'local port' If you can't locate the printer by browsing the network, it would probably be a better network if you could fix the browsing problem but the \ip_address_of_centos_system\printer_share_name and the printer_share_name would be the exact name of your printer as you set it up in cups (hopefully without spaces).
If you have set mime.types and mime.convs to allow 'raw' printing then that is your 'raw' print queue
Craig
Hello!
I am probably going to open another "can of worms" here, there is a thread on the fedora user list archive that I started and have been adding to lately.
Here is the bottom line, the defaults that would exist in cupsd.conf if you built it from tarball that you obtained from www.cups.org are not the compile time defaults that the redhat/fedora developers used when building the rpms. The changed several default values at compile time to lock down security.
You have to add, at a minimum, two lines in the network section of cupsd.conf, and they are:
Listen localhost Listen 192.168.x.x:631
Change the x.x to whatever your host ip is.
Under browsing options you may also have to add the following line:
BrowseAddress @LOCAL
Also, you should use chkconfig --list cups-config-daemon and if it is enabled then use chkconfig cups-config-daemon off and stop this process as the halutils package will rewrite you cupsd.conf file often and printing will mysteriously stop working.
John -- Registered Linux User 263680, get counted at http://counter.li.org
On Sun, 2006-03-05 at 08:05 -0600, John Pierce wrote:
Hello!
I am probably going to open another "can of worms" here, there is a thread on the fedora user list archive that I started and have been adding to lately.
Here is the bottom line, the defaults that would exist in cupsd.conf if you built it from tarball that you obtained from www.cups.org are not the compile time defaults that the redhat/fedora developers used when building the rpms. The changed several default values at compile time to lock down security.
You have to add, at a minimum, two lines in the network section of cupsd.conf, and they are:
Listen localhost Listen 192.168.x.x:631
Change the x.x to whatever your host ip is.
Under browsing options you may also have to add the following line:
BrowseAddress @LOCAL
Also, you should use chkconfig --list cups-config-daemon and if it is enabled then use chkconfig cups-config-daemon off and stop this process as the halutils package will rewrite you cupsd.conf file often and printing will mysteriously stop working.
John
Registered Linux User 263680, get counted at http://counter.li.org _______________________________________________
No can of worms here ... we will continue to clone the settings that are done upstream ... regardless of whether we agree with them or not.
No can of worms here ... we will continue to clone the settings that are done upstream ... regardless of whether we agree with them or not.
Not meaning from centos, but from other users. When I stated that on the fedora list I was flatly told that I was not correct and there must be something wrong with my setup. My setup was a stock fedora install with only base updates.
John -- Registered Linux User 263680, get counted at http://counter.li.org
Hi, I have a Samsung printer(ML-2010) connect to my centos 4.2 machine
by
usb. I want to share this printer with 3 windowsXP mchines in my
LAN.
Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something
similar.
In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help
-------------------------------------------------------------------------
windows doesn't use cups port
error message of 'access denied' doesn't necessarily mean that Windows users can't print to it (that's very confusing, I know) but that certainly means that the users can't "manage" the printer.
in samba printer share, there is an option for 'printer admin' which
if
the user/group is appropriate, will allow the user/group to 'manage'
the
printer, which is generally where the 'access denied' message comes
from
in a samba shared printer when looking at the 'status' from Windows 'Printers & Faxes'
Generally, I would expect the problem that you are having is that you are using 'client side' drivers and by default, cups (via samba) is offering a postscript printer.
I don't know what the specifics of a Samsung ML-2010 are but it would seem that you have 2 options...
1 - set the printer up in windows as a postscript printer, preferably using the Adobe Postscript print driver and the ppd that was created
by
cups on the CentOS system when you created the printer (located in /etc/cups/ppd)
or
2 - set the printer options within cups to allow 'raw' printing -
which
allows your samba shared non-postscript printer commands to pass
through
'unmolested' to the printer (see /etc/cups/mime.types & /etc/cups/mime.convs)
All of this is summarized in the official Samba 3 HowTo...
http://samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html
and things are starting to gel at the new samba wiki http://wiki.samba.org
for which printing support is here... http://wiki.samba.org/index.php/Samba_as_a_print_server
and I mention the wiki because I was drafted and am the editor of the wiki ;-)
-------------------------------------------------------------------------
The samsung ML-2010 does not have a postscript driver, it used a samsung language II driver that is available on windows and linux. I have read the samba-HOWTO-Collection document and config the
mime.type
and mine.conv to accept raw printjob. However, the instructions are hard to understand
1. Edit /etc/cups/mime.types to uncomment the line near the end
of
the file that has: #application/octet-... 2. Do the same for the file /etc/cups/mime.convs. 3. Add a raw printer using the Web interface. Point your browser
at
http://localhost:631. Enter Administration, add the printer following the prompts. Do not install any drivers for it. Choose Raw. Choose queue name Raw Queue. 4. In the smb.conf file [printers] section add use client driver
=
Yes, and in the [global] section add printing = CUPS, plus printcap = CUPS. 5. Install the printer as if it is a local printer. i.e.:
Printing
to LPT1:.(in my case /dev/usb/lp0) I did until this line 6. Edit the configuration under the Detail tab, create a local
port
that points to the raw printer queue that you have configured above. Example: \server\raw_q. Here, the name raw_q is the name you gave
the
print queue in the CUPS environment.
The line number 6 is not clear, i dont know what application they are talking about for the "Detail tab". How can i create a local port and point to the raw printer queue? My goal is simple, 1/create a raw printer queue on CENTOS to accept any PREPARED print
job
from any machine from the network 2/install a use samsung driver to prepare print job on CENTOS(same machine where the printer is pluged into) 3/install and use windows samsung driver on windows machines to
prepare
print jobs and sent them to the raw printer queue on CENTOS Hope anyone can help THAI
------------------------------------------------- yeah - 6 is a bit confusing but you can actually make it simpler...
See if you can use the APW (add printer wizard) - network printer - browse for the printer and see if the printer shows up in your domain/workgroup and you can just select the printer which is the 'local port' If you can't locate the printer by browsing the network, it would probably be a better network if you could fix the browsing problem but the \ip_address_of_centos_system\printer_share_name and the printer_share_name would be the exact name of your printer as you set it up in cups (hopefully without spaces).
If you have set mime.types and mime.convs to allow 'raw' printing then that is your 'raw' print queue ---------------------------------------------------- After modify mine.types, mime.conv and printers.conf in /etc/cups such that the raw queue(called RAW) point to /dev/usb/lp0 and the printer queue(installed with the supported driver) pointing to the same place(/dev/usb/lp0), windows machine can print to the printer using their own client driver. However, from centos machine, where the printer physically attached to, i can not print more than 1 page. In fact, the support driver installed on centos become unstable right after i edit the mime.type and mime.conv; i can not print a series of page and choose print odd or even page only. Any suggestion for this problem? Thai ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
On Sat, 2006-03-04 at 09:51 -0500, lnthai2002@aim.com wrote:
I have a Samsung printer(ML-2010) connect to my centos 4.2 machine by usb. I want to share this printer with 3 windowsXP mchines in my LAN. Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something similar. In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help
If you're using IPP then 631 is enough. If you're using SMB then you need to open ports 137 through 139 and 445, all tcp.
-----Original Message----- From: Ignacio Vazquez-Abrams ivazquez@ivazquez.net To: CentOS mailing list centos@centos.org Sent: Sat, 04 Mar 2006 10:15:12 -0500 Subject: Re: [CentOS] Do i have to open port 631 for LAN printing
On Sat, 2006-03-04 at 09:51 -0500, lnthai2002@aim.com wrote:
I have a Samsung printer(ML-2010) connect to my centos 4.2 machine by usb. I want to share this printer with 3 windowsXP mchines in my LAN. Although i have install driver for the printer on all machines, use samba to share the printer, from the windows machine i still have an error"access denied, can not connect to printer" or something
similar.
In Security Level, i have checked "trusted device: eth0, sit0" , is port 631 automatically open? How do i know that my problem is not caused by the blocked port? Hope anyone can help
------------------------------------------------------------------------- ---------------------------------- If you're using IPP then 631 is enough. If you're using SMB then you need to open ports 137 through 139 and 445, all tcp.
------------------------------------------------------------------------- --------------------------------- The printer is connect locally to the centos machine and should be shared to other windowsXP machines by samba. So when i config that printer on cenots, it is not IPP nor SMB but localy connected. Thai
________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.