public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] printing - via windows PC
@ 2005-09-25 22:36 Ian Porter
  2005-09-26  2:57 ` Nick Rout
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ian Porter @ 2005-09-25 22:36 UTC (permalink / raw
  To: gentoo-user

Hi all,

I am trying to print on my linux pc via a windows xp pro pc (the printer is a 
HP 1110 PSC), but I have followed the advice on 
http://gentoo-wiki.com/HOWTO_print_winserver
but keep on either getting
NT_STATUS_ACCESS_DENIED message via the smb url or ERRDOS via the lpd method.  
I have tried to have the smb://guest@workgroup/pcname/printer and also my 
smb://userid:password@workgroup/pcname/printer
(with also the lpd version) but that does not work either, I just get either 
access denied or just sticks at 21% printer (on the test printer part of 
cups) and then it says that the pc is not available, 

/var/log/cups/error_log
[Job 1] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR:
  Connection failed with error NT_STATUS_ACCESS_DENIED
[Job 1] ERRDOS - ERRbadaccess (Invalid open mode.) opening remote spool Te
st Page

/etc/cups/printers.conf
DeviceURI smb://NAME/HP1110

I have turned off any firewall that was on the windows pc (just incase) but 
still no joy.

Any advice ?

I used to have the Linux machine as the print server, but found that my wife 
was using the printer far more than me thus made more sense to have the 
printer on her pc, if I log onto windows on my pc the printer works fine so 
it is shared *ok* as such.

Thanks
Ian
PC - 2.6.12-gentoo-r10
CUPS - 1.1.23
SAMBA - 3.0.14a
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] printing - via windows PC
  2005-09-25 22:36 [gentoo-user] printing - via windows PC Ian Porter
@ 2005-09-26  2:57 ` Nick Rout
  2005-09-26  3:17 ` Michael Crute
  2005-09-26 15:23 ` Stewart Taylor
  2 siblings, 0 replies; 7+ messages in thread
From: Nick Rout @ 2005-09-26  2:57 UTC (permalink / raw
  To: gentoo-user

Sorry I have no instant answer except the following comments:

1. I'm betting linux will make a better print server than windows

2. racking up the logging level in /etc/cups/cupsd.conf should give you
some more clues to google on.

LogLevel info 

is the standard, you have the following options:

# LogLevel: controls the number of messages logged to the ErrorLog
# file and can be one of the following:
#
#     debug2    Log everything.
#     debug     Log almost everything.
#     info      Log all requests and state changes.
#     warn      Log errors and warnings.
#     error     Log only errors.
#     none      Log nothing.

I suggest you try debug first, and restart cupsd after you change the
setting.

Once you have the problem sussed, switch it back to "info" as debug[2]
creates a whole swag of info :)



On Sun, 25 Sep 2005 22:36:42 +0000
Ian Porter wrote:

> Hi all,
> 
> I am trying to print on my linux pc via a windows xp pro pc (the printer is a 
> HP 1110 PSC), but I have followed the advice on 
> http://gentoo-wiki.com/HOWTO_print_winserver
> but keep on either getting
> NT_STATUS_ACCESS_DENIED message via the smb url or ERRDOS via the lpd method.  
> I have tried to have the smb://guest@workgroup/pcname/printer and also my 
> smb://userid:password@workgroup/pcname/printer
> (with also the lpd version) but that does not work either, I just get either 
> access denied or just sticks at 21% printer (on the test printer part of 
> cups) and then it says that the pc is not available, 
> 
> /var/log/cups/error_log
> [Job 1] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR:
>   Connection failed with error NT_STATUS_ACCESS_DENIED
> [Job 1] ERRDOS - ERRbadaccess (Invalid open mode.) opening remote spool Te
> st Page
> 
> /etc/cups/printers.conf
> DeviceURI smb://NAME/HP1110
> 
> I have turned off any firewall that was on the windows pc (just incase) but 
> still no joy.
> 
> Any advice ?
> 
> I used to have the Linux machine as the print server, but found that my wife 
> was using the printer far more than me thus made more sense to have the 
> printer on her pc, if I log onto windows on my pc the printer works fine so 
> it is shared *ok* as such.
> 
> Thanks
> Ian
> PC - 2.6.12-gentoo-r10
> CUPS - 1.1.23
> SAMBA - 3.0.14a
> -- 
> gentoo-user@gentoo.org mailing list

-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] printing - via windows PC
  2005-09-25 22:36 [gentoo-user] printing - via windows PC Ian Porter
  2005-09-26  2:57 ` Nick Rout
@ 2005-09-26  3:17 ` Michael Crute
  2005-09-26  4:55   ` Nick Rout
  2005-09-26 15:23 ` Stewart Taylor
  2 siblings, 1 reply; 7+ messages in thread
From: Michael Crute @ 2005-09-26  3:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 965 bytes --]

On 9/25/05, Ian Porter <ian@designersoft.co.uk> wrote:
>
> NT_STATUS_ACCESS_DENIED message via the smb url or ERRDOS via the lpd
> method.
> I have tried to have the smb://guest@workgroup/pcname/printer and also my
> smb://userid:password@workgroup/pcname/printer
> (with also the lpd version) but that does not work either, I just get
> either
> access denied or just sticks at 21% printer (on the test printer part of
> cups) and then it says that the pc is not available,
>

Just an observation, isnt it smb://usrname@pcname/printer? That's the way I
have always accessed samba shares. Perhaps it makes no difference. Also, not
to state the obvious, but is the guest account turned on for the xp box?

-Mike

--
________________________________
Michael E. Crute
Software Developer
SoftGroup Development Corporation

Linux, because reboots are for installing hardware.
"In a world without walls and fences, who needs windows and gates?"

[-- Attachment #2: Type: text/html, Size: 1433 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] printing - via windows PC
  2005-09-26  3:17 ` Michael Crute
@ 2005-09-26  4:55   ` Nick Rout
  2005-09-26  5:12     ` Nick Rout
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Rout @ 2005-09-26  4:55 UTC (permalink / raw
  To: gentoo-user


On Sun, 25 Sep 2005 23:17:18 -0400
Michael Crute wrote:

> On 9/25/05, Ian Porter <ian@designersoft.co.uk> wrote:
> >
> > NT_STATUS_ACCESS_DENIED message via the smb url or ERRDOS via the lpd
> > method.
> > I have tried to have the smb://guest@workgroup/pcname/printer and also my
> > smb://userid:password@workgroup/pcname/printer
> > (with also the lpd version) but that does not work either, I just get
> > either
> > access denied or just sticks at 21% printer (on the test printer part of
> > cups) and then it says that the pc is not available,
> >
> 
> Just an observation, isnt it smb://usrname@pcname/printer? That's the way I
> have always accessed samba shares. Perhaps it makes no difference. Also, not
> to state the obvious, but is the guest account turned on for the xp box?

from http://www.linuxprinting.org/kpfeifle/LinuxKongress2002/Tutorial/VI.CUPS-Connections/VI.tutorial-handout-cups-connections.html


"The "smbspool" program is provided with SAMBA starting with SAMBA
2.0.6. Once you have made the link [1] and restarted CUPS you can
configure your printers with one of the following device URIs:

   smb://<workgroup>/<server>/<sharename>
   smb://<server>/<sharename>
   smb://<user>:<password>@<workgroup>/<server>/<sharename>
   smb://<user>:<password>@<server>/<sharename>"


[1] this is the link from /usr/lib/cups/backend/smb to
/usr/bin/smbspool. you shouldn't need to worry about it, as the samba
ebuild makes it.

> 
> -Mike
> 
> --
> ________________________________
> Michael E. Crute
> Software Developer
> SoftGroup Development Corporation
> 
> Linux, because reboots are for installing hardware.
> "In a world without walls and fences, who needs windows and gates?"

-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] printing - via windows PC
  2005-09-26  4:55   ` Nick Rout
@ 2005-09-26  5:12     ` Nick Rout
  2005-09-26  7:47       ` ian
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Rout @ 2005-09-26  5:12 UTC (permalink / raw
  To: gentoo-user


On Mon, 26 Sep 2005 16:55:51 +1200
Nick Rout wrote:

> from http://www.linuxprinting.org/kpfeifle/LinuxKongress2002/Tutorial/VI.CUPS-Connections/VI.tutorial-handout-cups-connections.html
> 
> 
> "The "smbspool" program is provided with SAMBA starting with SAMBA
> 2.0.6. Once you have made the link [1] and restarted CUPS you can
> configure your printers with one of the following device URIs:
> 
>    smb://<workgroup>/<server>/<sharename>
>    smb://<server>/<sharename>
>    smb://<user>:<password>@<workgroup>/<server>/<sharename>
>    smb://<user>:<password>@<server>/<sharename>"

Ooops I probably should have included this:

"The workgroup name needs only to be specified if your system is using a
different workgroup than the server. The "<user>:<password>" strings are
required when printing to Windows NT/2000 servers or to shares with
passwords enabled under Windows 95, 98, or XP.

Note: The Samba client transmits the password in clear text! This makes
printing to Samba servers insecure! (One only needs to enter "ps -auxwww
| grep smb" during the job transmission to the Windows server to see the
whole URI-string including the password...) It is therefore strongly
recommended to either use a separate account only for printing on the
Windows server (best without writable home directory). Otherwise,
connect all printers to servers running GNU/Linux or Unix.

The KDEPrint "Add Printer Wizard" has a comfortable facility for
scanning the network for available printer shares on Windows (and Samba)
servers."

-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] printing - via windows PC
  2005-09-26  5:12     ` Nick Rout
@ 2005-09-26  7:47       ` ian
  0 siblings, 0 replies; 7+ messages in thread
From: ian @ 2005-09-26  7:47 UTC (permalink / raw
  To: gentoo-user

Nick and Michael,

Thanks for the information, I shall try it out tonight.

Cheers again
Ian
>
> On Mon, 26 Sep 2005 16:55:51 +1200
> Nick Rout wrote:
>
>> from
>>
http://www.linuxprinting.org/kpfeifle/LinuxKongress2002/Tutorial/VI.CUPS-Connections/VI.tutorial-handout-cups-connections.html>>
>>
>> "The "smbspool" program is provided with SAMBA starting with SAMBA
>> 2.0.6. Once you have made the link [1] and restarted CUPS you can
>> configure your printers with one of the following device URIs:
>>
>>    smb://<workgroup>/<server>/<sharename>
>>    smb://<server>/<sharename>
>>    smb://<user>:<password>@<workgroup>/<server>/<sharename>
>>    smb://<user>:<password>@<server>/<sharename>"
>
> Ooops I probably should have included this:
>
> "The workgroup name needs only to be specified if your system is using
> a different workgroup than the server. The "<user>:<password>" strings
> are required when printing to Windows NT/2000 servers or to shares with
> passwords enabled under Windows 95, 98, or XP.
>
> Note: The Samba client transmits the password in clear text! This makes
> printing to Samba servers insecure! (One only needs to enter "ps
> -auxwww | grep smb" during the job transmission to the Windows server
> to see the whole URI-string including the password...) It is therefore
> strongly recommended to either use a separate account only for printing
> on the Windows server (best without writable home directory).
> Otherwise,
> connect all printers to servers running GNU/Linux or Unix.
>
> The KDEPrint "Add Printer Wizard" has a comfortable facility for
> scanning the network for available printer shares on Windows (and
> Samba) servers."
>
> --
> Nick Rout <nick@rout.co.nz>
>
> --
> gentoo-user@gentoo.org mailing list



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] printing - via windows PC
  2005-09-25 22:36 [gentoo-user] printing - via windows PC Ian Porter
  2005-09-26  2:57 ` Nick Rout
  2005-09-26  3:17 ` Michael Crute
@ 2005-09-26 15:23 ` Stewart Taylor
  2 siblings, 0 replies; 7+ messages in thread
From: Stewart Taylor @ 2005-09-26 15:23 UTC (permalink / raw
  To: gentoo-user

Ian Porter wrote:

> NT_STATUS_ACCESS_DENIED message via the smb url or ERRDOS via the lpd method.  
> I have tried to have the smb://guest@workgroup/pcname/printer and also my 

Make sure you have the Linux printer 
setup to log onto the windows computer 
as guest.

HTH
Stewart
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-26 15:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-25 22:36 [gentoo-user] printing - via windows PC Ian Porter
2005-09-26  2:57 ` Nick Rout
2005-09-26  3:17 ` Michael Crute
2005-09-26  4:55   ` Nick Rout
2005-09-26  5:12     ` Nick Rout
2005-09-26  7:47       ` ian
2005-09-26 15:23 ` Stewart Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox