Hey Y'all,
I've been trying for months to get samba to share my printer with my
wife's Win XP machine. I've RTFM, and spent hours on google to no
avail.
I can't see the printer from Windows so I can't mount it up. Nothing
appears in the logs. The file shares work just fine.
It looks like I've got Samba 3.6.9 on this machine:
[mlapier at mushroom samba]$ rpm -qa | grep samba
samba-swat-3.6.9-151.el6.i686
samba-doc-3.6.9-151.el6.i686
samba-client-3.6.9-151.el6.i686
samba-winbind-clients-3.6.9-151.el6.i686
samba-3.6.9-151.el6.i686
samba-common-3.6.9-151.el6.i686
samba-winbind-devel-3.6.9-151.el6.i686
samba-winbind-krb5-locator-3.6.9-151.el6.i686
samba-domainjoin-gui-3.6.9-151.el6.i686
samba-winbind-3.6.9-151.el6.i686
samba4-libs-4.0.0-55.el6.rc4.i686
[mlapier at mushroom samba]$ name
CentOS release 6.4 (Final)
Linux mushroom.patch 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12 21:42:46
UTC 2013 i686 i686 i386 GNU/Linux
[mlapier at mushroom samba]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[pictures]"
Processing section "[budget]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
printcap name = cups
idmap config * : backend = tdb
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No
[pictures]
comment = Pictures
path = /home/pictures
read only = No
guest ok = Yes
[budget]
comment = Budget
path = /home/budget
valid users = nllapie, mlapier
read only = No
[mlapier at mushroom ~]$
Is there anything else I can share with you that will help you to
diagnose my problem?
--
_
?v?
/(_)\
^ ^ Mark LaPierre
Registered Linux user No #267004
https://linuxcounter.net/
****
On 30/03/13 08:38 PM, Mark LaPierre wrote:> Hey Y'all, > > I've been trying for months to get samba to share my printer with my > wife's Win XP machine. I've RTFM, and spent hours on google to no avail. > > I can't see the printer from Windows so I can't mount it up. Nothing > appears in the logs. The file shares work just fine. > > It looks like I've got Samba 3.6.9 on this machine: > > [mlapier at mushroom samba]$ rpm -qa | grep samba > samba-swat-3.6.9-151.el6.i686 > samba-doc-3.6.9-151.el6.i686 > samba-client-3.6.9-151.el6.i686 > samba-winbind-clients-3.6.9-151.el6.i686 > samba-3.6.9-151.el6.i686 > samba-common-3.6.9-151.el6.i686 > samba-winbind-devel-3.6.9-151.el6.i686 > samba-winbind-krb5-locator-3.6.9-151.el6.i686 > samba-domainjoin-gui-3.6.9-151.el6.i686 > samba-winbind-3.6.9-151.el6.i686 > samba4-libs-4.0.0-55.el6.rc4.i686 > [mlapier at mushroom samba]$ name > CentOS release 6.4 (Final) > Linux mushroom.patch 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12 > 21:42:46 UTC 2013 i686 i686 i386 GNU/Linux > [mlapier at mushroom samba]$ testparm > Load smb config files from /etc/samba/smb.conf > Processing section "[homes]" > Processing section "[printers]" > Processing section "[pictures]" > Processing section "[budget]" > Loaded services file OK. > Server role: ROLE_STANDALONE > Press enter to see a dump of your service definitions > > [global] > server string = Samba Server Version %v > log file = /var/log/samba/log.%m > max log size = 50 > printcap name = cups > idmap config * : backend = tdb > > [homes] > comment = Home Directories > read only = No > browseable = No > > [printers] > comment = All Printers > path = /var/spool/samba > guest ok = Yes > printable = Yes > print ok = Yes > browseable = No > > [pictures] > comment = Pictures > path = /home/pictures > read only = No > guest ok = Yes > > [budget] > comment = Budget > path = /home/budget > valid users = nllapie, mlapier > read only = No > [mlapier at mushroom ~]$ > > Is there anything else I can share with you that will help you to > diagnose my problem?Have you checked the CUPS printer sharing?
On 04/02/2013 09:38 PM, David Kuntadi wrote:> > > > On Sun, Mar 31, 2013 at 7:38 AM, Mark LaPierre <marklapier at aol.com > <mailto:marklapier at aol.com>> wrote: > > > > Hey Y'all, > > > > I've been trying for months to get samba to share my printer with my > wife's Win XP machine. I've RTFM, and spent hours on google to no avail. > > > > If only to share to one computer, how about trying to use IPP printing > instead? > > http://<hostname>:631/printers/<printername> > > So far for me it is the easiest way to share printer to windows. > > > DK >Hey Dave, Thank you for the interesting proposal. If all I had share to the Windows machine was the printer I would consider doing that but as have to share some files too then Samba is probably my best solution. I've received some help on my issue from others on this thread. The Windows machine can now send print jobs to the shared printer but is still unable to status the print queue. I'm getting closer. -- _ ?v? /(_)\ ^ ^ Mark LaPierre Registered Linux user No #267004 https://linuxcounter.net/ ****
Hai,
But what do you want? how is it to be used.
and what os are you running?
Do you want to use windows drivers or the linux drivers?
some checks, post them back.
the output of.
net -S PDC -U root%PASSWORD rpc rights list "DOMAINNAME\Administrator"
( of root if you dont have administrator )
you should see at least SePrintOperatorPrivilege
read http://lists.samba.org/archive/samba/2005-December/114817.html
Point 6 and the part just above point 6.
and, whats the output of lpstat -a
this is 1 the my /etc/printcap entries.
HP040|Hostname|Description Printer HP 040:\
:lp=192.168.249.40%9100:\
:rp=Hostname:\
:sd=/var/spool/lpd/040:\
:sh:
make sure the hostname resolves, else use ip.
set this up with the cups wizard, for the windows spooler choose RAW queue.
and the last thing,
is in /etc/cups/cupsd.conf
this part, ( the Allow from all part is what you need. )
<Location /printers>
AuthType None
Order Deny,Allow
Deny From None
Allow From All
</Location>
Gr.
Lois
>-----Oorspronkelijk bericht-----
>Van: marklapier at aol.com [mailto:samba-bounces at lists.samba.org]
>Namens Mark LaPierre
>Verzonden: woensdag 3 april 2013 4:46
>Aan: David Kuntadi; Mail List Samba
>Onderwerp: Re: [Samba] Desperate plea for help with printer share
>
>On 04/02/2013 09:38 PM, David Kuntadi wrote:
>>
>>
>>
>> On Sun, Mar 31, 2013 at 7:38 AM, Mark LaPierre <marklapier at
aol.com
>> <mailto:marklapier at aol.com>> wrote:
>> >
>> > Hey Y'all,
>> >
>> > I've been trying for months to get samba to share my
>printer with my
>> wife's Win XP machine. I've RTFM, and spent hours on google
>to no avail.
>> >
>>
>> If only to share to one computer, how about trying to use
>IPP printing
>> instead?
>>
>> http://<hostname>:631/printers/<printername>
>>
>> So far for me it is the easiest way to share printer to windows.
>>
>>
>> DK
>>
>
>Hey Dave,
>
>Thank you for the interesting proposal. If all I had share to the
>Windows machine was the printer I would consider doing that
>but as have
>to share some files too then Samba is probably my best solution.
>
>I've received some help on my issue from others on this thread. The
>Windows machine can now send print jobs to the shared printer but is
>still unable to status the print queue. I'm getting closer.
>
>--
> _
> ?v?
> /(_)\
> ^ ^ Mark LaPierre
>Registered Linux user No #267004
>https://linuxcounter.net/
>****
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: https://lists.samba.org/mailman/options/samba
>
>
Mark LaPierre
2013-Apr-07 01:21 UTC
[Samba] Desperate plea for help with printer share (SOLVED)
>> -----Oorspronkelijk bericht----- >> Van: Mark LaPierre [mailto:marklapier at aol.com] >> Verzonden: donderdag 4 april 2013 3:07 >> Aan: L.P.H. van Belle >> CC: samba at lists.samba.org; Mark LaPierre >> Onderwerp: Re: [Samba] Desperate plea for help with printer share >> >> On 04/03/2013 02:56 AM, L.P.H. van Belle wrote: >> >>>> -----Oorspronkelijk bericht----- >>>> Van: marklapier at aol.com [mailto:samba-bounces at lists.samba.org] >>>> Namens Mark LaPierre >>>> Verzonden: woensdag 3 april 2013 4:46 >>>> Aan: David Kuntadi; Mail List Samba >>>> Onderwerp: Re: [Samba] Desperate plea for help with printer share >>>> >>>> On 04/02/2013 09:38 PM, David Kuntadi wrote: >>>>> >>>>> >>>>> >>>>> On Sun, Mar 31, 2013 at 7:38 AM, Mark LaPierre <marklapier at aol.com >>>>> <mailto:marklapier at aol.com>> wrote: >>>>> > >>>>> > Hey Y'all, >>>>> > >>>>> > I've been trying for months to get samba to share my >>>> printer with my >>>>> wife's Win XP machine. I've RTFM, and spent hours on google >>>> to no avail. >>>>> > >>>>> >>>>> If only to share to one computer, how about trying to use >>>> IPP printing >>>>> instead? >>>>> >>>>> http://<hostname>:631/printers/<printername> >>>>> >>>>> So far for me it is the easiest way to share printer to windows. >>>>> >>>>> >>>>> DK >>>>> >>>> >>>> Hey Dave, >>>> >>>> Thank you for the interesting proposal. If all I had share to the >>>> Windows machine was the printer I would consider doing that >>>> but as have >>>> to share some files too then Samba is probably my best solution. >>>> >>>> I've received some help on my issue from others on this thread. The >>>> Windows machine can now send print jobs to the shared printer but is >>>> still unable to status the print queue. I'm getting closer. >>>> >>>> -- >>>> _ >>>> ?v? >>>> /(_)\ >>>> ^ ^ Mark LaPierre >>>> Registered Linux user No #267004 >>>> https://linuxcounter.net/ >>>> **** >>>> -- >>>> To unsubscribe from this list go to the following URL and read the >>>> instructions: https://lists.samba.org/mailman/options/samba >>>> >>>> >>> Hai, >>> >>> But what do you want? how is it to be used. >>> and what os are you running? >>> >>> Do you want to use windows drivers or the linux drivers? >>> >>> some checks, post them back. >>> the output of. >>> net -S PDC -U root%PASSWORD rpc rights list >> "DOMAINNAME\Administrator" ( of root if you dont have administrator ) >>> you should see at least SePrintOperatorPrivilege >>> read http://lists.samba.org/archive/samba/2005-December/114817.html >>> Point 6 and the part just above point 6. >>> >>> and, whats the output of lpstat -a >>> >>> this is 1 the my /etc/printcap entries. >>> >>> HP040|Hostname|Description Printer HP 040:\ >>> :lp=192.168.249.40%9100:\ >>> :rp=Hostname:\ >>> :sd=/var/spool/lpd/040:\ >>> :sh: >>> >>> make sure the hostname resolves, else use ip. >>> set this up with the cups wizard, for the windows spooler >> choose RAW queue. >>> >>> and the last thing, >>> is in /etc/cups/cupsd.conf >>> this part, ( the Allow from all part is what you need. ) >>> <Location /printers> >>> AuthType None >>> Order Deny,Allow >>> Deny From None >>> Allow From All >>> </Location> >>> >>> >>> >>> Gr. >>> >>> Lois >>> >>> But what do you want? >> I want to be able to print jobs from my wife's Win XP machine, and >> manage those print jobs from the print manager on Win XP >> machine. Right >> now I can print jobs from the Win XP machine but can not read >> the status >> of jobs in the Win XP print queue. >> >>> and what os are you running? >> [mlapier at mushroom ~]$ name >> CentOS release 6.4 (Final) >> Linux mushroom.patch 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12 >> 21:42:46 >> UTC 2013 i686 i686 i386 GNU/Linux >> [mlapier at mushroom ~]$ >> >>> Do you want to use windows drivers or the linux drivers? >> The Win XP machine has it's own driver installed. >> >> [mlapier at mushroom ~]$ lpstat -a >> HP-Color-LaserJet-cp2025dn accepting requests since Tue 26 Mar 2013 >> 06:06:44 PM EDT >> HP_Color_LaserJet_CP2025dn accepting requests since Tue 12 Mar 2013 >> 06:19:36 PM EDT >> Samsung-ML-1740 accepting requests since Wed 03 Apr 2013 >> 05:58:33 AM EDT >> WorkForce-1100 accepting requests since Sat 01 Dec 2012 12:07:03 PM EST >> [mlapier at mushroom ~]$ >> >> [mlapier at mushroom ~]$ cat /etc/printcap >> # This file was automatically generated by cupsd(8) from the >> # /etc/cups/printers.conf file. All changes to this file >> # will be lost. >> Samsung-ML-1740|Samsung ML-1740:rm=mushroom.patch:rp=Samsung-ML-1740: >> HP-Color-LaserJet-cp2025dn|HP Color LaserJet >> cp2025dn:rm=mushroom.patch:rp=HP-Color-LaserJet-cp2025dn: >> HP_Color_LaserJet_CP2025dn|Color Laser >> Printer:rm=mushroom.patch:rp=HP_Color_LaserJet_CP2025dn: >> WorkForce-1100|EPSON WorkForce >> 1100:rm=mushroom.patch:rp=WorkForce-1100: >> [mlapier at mushroom ~]$ >> >> [nllapie at mushroom ~]$ net rpc rights list >> Enter nllapie's password: >> SeMachineAccountPrivilege Add machines to domain >> SeTakeOwnershipPrivilege Take ownership of files or >> other objects >> SeBackupPrivilege Back up files and directories >> SeRestorePrivilege Restore files and directories >> SeRemoteShutdownPrivilege Force shutdown from a remote system >> SePrintOperatorPrivilege Manage printers >> SeAddUsersPrivilege Add users and groups to the domain >> SeDiskOperatorPrivilege Manage disk shares >> SeSecurityPrivilege System security >> [nllapie at mushroom ~]$ >> >> In /etc/cups/cupsd.conf I have three <Location tags. None of them are >> <Location /printers>. >> >> I think that covers all your information requests. >> >> -- >> _ >> ?v? >> /(_)\ >> ^ ^ Mark LaPierre >> Registered Linux user No #267004 >> https://linuxcounter.net/ >> **** >> >> > On 04/04/2013 03:29 AM, L.P.H. van Belle wrote:> Hai, > > The HP 2025 is a hard printer to install > > Hi look here. > http://lists.centos.org/pipermail/centos/2012-January/122802.html > > Gr. > > Louis > >Thank you for the response, and the link to my own post when I was trying to solve this same problem. I can't imagine how the working configuration I had then got changed. I see that I was at CentOS 6.2 then. Perhaps one of the upgrades from 6.2 to 6.3, and then 6.4, over wrote the file. I've got a good file now and a good backup of it. The problem was solved by the addition of: use client driver = yes to the [printers] section of the smb.conf file and a service smb restart. -- _ ?v? /(_)\ ^ ^ Mark LaPierre Registered Linux user No #267004 https://linuxcounter.net/ ****