Visit Our UNIX and Linux User Community


Sharing Printer Linux + XP (cups/samba)


 
Thread Tools Search this Thread
Operating Systems Linux Sharing Printer Linux + XP (cups/samba)
# 1  
Old 03-14-2006
Sharing Printer Linux + XP (cups/samba)

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

Code:
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?
# 2  
Old 03-14-2006
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!
# 3  
Old 03-14-2006
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

Previous Thread | Next Thread
Test Your Knowledge in Computers #452
Difficulty: Medium
San Francisco has a Linux-based traffic controller computer that meets the latest Advanced Transportation Controller (ATC) standards.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with script to automate CUPS printer installs

Good afternoon. :) I'm rather new to bash scripting, and have probably bitten off a bit more than I can chew to be honest, but I work in a service desk-like environment where one of the main complaints is that it takes our staff a long time to set up network printers on our clients' servers.... (3 Replies)
Discussion started by: aperfecthalo
3 Replies

2. Red Hat

Samba and Cups :: How to Hide Printer Icons

Hi, I am running Linux box with samba-3.0.33 cups-1.3.7 When I access my home folder through windows and give user credentials, it works well but shows all the printers icons as well. I would like to hide them all from users. I tried changing Browsing On to Browsing Off in... (1 Reply)
Discussion started by: amit_spl
1 Replies

3. UNIX for Dummies Questions & Answers

Query for printer driver in CUPS

I have a RHEL 4 (probably not important, but whatever) machine with a few dozen network printers set up in CUPS. I would like to replicate this on a second machine. With lpinfo I'm able to get the queue name and device information (socket://ipaddress or whatnot), but I haven't get figured out... (0 Replies)
Discussion started by: kknigga
0 Replies

4. SCO

Replace Line Printer Daemon (LPD) with CUPS

hi Howto replace Line Printer Daemon (LPD) with CUPS on SCO 5.0.6? (3 Replies)
Discussion started by: ccc
3 Replies

5. Red Hat

Need a single printer driver added to CUPS

Just got an HP OfficeJet L7680 printer but there are no drivers for it in RHEL5. I just want to add the single driver without installing hplip 3.9.8. It's going to be connected with USB. Is this possible and if so how? (1 Reply)
Discussion started by: deloev
1 Replies

6. Linux

mapping of a printer model with a ppd file in CUPS

Hi all, I am currently working on building a GUI to be interfaced with CUPS 1.3.4 package; In my GUI I have a list of printer manufacturers mapped With various printer models ; and for a particular printer model selected I needed to know how to map that model with an Appropriate ppd file; as I... (0 Replies)
Discussion started by: sc3008
0 Replies

7. UNIX for Dummies Questions & Answers

sharing a printer

i have made a network between 2 computers and with 1 of the computers i have added a printer. how can get the other computer to be shared so he can use the printer. i am using unix fedora btw. thanks very much ppl. (0 Replies)
Discussion started by: king_jon85
0 Replies

8. IP Networking

Printer Sharing on a Mixed(Windows/Linux) Home Network

Sometimes you get the tiger...but sometimes he get you and this latest home network “project” of mine has gnawed on me pretty badly. Perhaps you can offer some technical help. It will be heartily appreciated. I have a small home network initially comprising two computers running Windows... (1 Reply)
Discussion started by: Annatar
1 Replies

9. UNIX for Dummies Questions & Answers

Sharing printer with windows via cups and samba

I want to use my linux box as a print server for my hp printer. I downloaded the linux driver for the printer and installed it. I also configured CUPS and printed a test page with it. Samba is allowing my windows machine to see and install the printer, but when i try to print to it, nothing... (1 Reply)
Discussion started by: Spetnik
1 Replies

Featured Tech Videos