Sharing Printer Linux + XP (cups/samba)

I keep getting a access denied error when I install from the XP wizard my Linux shared printer.

CUPS CONFIGURATION FILE
<Location /admin>
#
# You definitely will want to limit access to the administration functions.
# The default configuration requires a local connection from a user who
# is a member of the system group to do any admin tasks.  You can change
# the group name using the SystemGroup directive.
#

AuthType Basic
AuthClass System

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

#Encryption Required
</Location>

#
# End of "$Id: cupsd.conf.in,v 1.8 2002/12/13 16:23:54 mike Exp $".
#
<Location /printers/samsung>
Order Deny,Allow
AuthType None
Allow from All
</Location>

<Location />
Order Deny,Allow
Deny From All
Allow From @LOCAL
</Location>
Allow From @LOCAL
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
BrowseAddress @LOCAL
Listen *:631


SAMBA CONFIGURATION FILE
[global]
	workgroup = <ommited>
	username map = /etc/samba/smbusers
	encrypt passwords = yes
	printing = cups
	printcap name = cups
[plans]
	path = /plans
	writeable = yes

[printers]
	path = /var/spool/samba
	browseable = no
	guest ok = yes
	writeable = no
	printable = yes

These are the cups and samba configuration files.

I dunno why I am getting the error. I am using Red Hat 9 with XP Home edition.

Also, when omit [printers] from the samba .conf file no shared printers are 'browseable' from the XP lap top. Does this point to an error with CUPS?

Because, basically it is being shared on the network, as I can select it in the Wizard - my problem is that the access from XP to Linux share is not allowed.

Can Anyone Help?

Just to be specific:

I have a ML-1610 Samsung printer attached via USB to my Linux Red Hat 9 box.

I have a wireless router that connects the XP Home lap top to the home network and this has access via a password to the directory /plans on the Linux box.

I want to be able to print a file from my XP lap top on the shared printer connected to the Linux box.

I hope this clears every thing up: I have tried all morning reading man pages to get this to work but no luck so far and I have given up!

Please help!

Well, it took pretty much 12 hours to find the right configuration...ha.

I did a couple of things such as smbpasswd -r <xp host>

Dunno if that had any importance but I also changed the smb.conf file

Basically, I gave up on cups and did a straight samba share for the printer.

I think the problem could have been a previous share I set up to use User/Password comibnation for access. Because I had previously set up User authentication on the folder /plans I was getting an access denied error because I had not mirrored these settings in the [printer] smb.conf section.

Therefore, after security = User and Encrypt Password = Yes was added the printer share worked.

It could have been a number of things though. For example in the beginning I was not using the correct driver - then I installed the correct driver on Linux.

Next I also added;
wins support = Yes
to the global settings

Use Client Driver = Yes
to the printer section.

It could have been any number of these things that got the XP Home lappy to register the printer share.

I gotta admit I felt f*cking amazing rush of pleasure when I saw under the little printer icon the words;
'Ready' or whatever it says!

12 hours of reading through man pages and usenet groups and in a way I think the answer was staring me in the face where the samba system was configured for User security and this is what the printers section should have been set to. This I really think was the cause for the 'Access Denied' error.

Thanks any ways,

Alux