LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2005, 10:08 AM   #1
anickless
LQ Newbie
 
Registered: Nov 2005
Location: Edmonton
Distribution: Debian sarge & woody
Posts: 29

Rep: Reputation: 15
Samba and Printing


Well this seems to be a fun topic to talk about and the sad thing is i haven't found a really good document that just looks at samba and printer and all related issues.

Anyway enough with the rant here is the "issue"

I have network printers setup via CUPS and HPLIP on a debian machine, i have SWAT and the CUPS interface installed. I added the printers to samba successfully by way of the cupsaddsmb -a command and the linux machine can print to the printers fine.

the issue is when i try to connect to the printer from a windows machine i can connect it asks for drivers, i install the drivers, it finishs the connection and then the printer comes up as "access denied"

help?


here is my relevent parts of the smb.conf:

[global]
security = user
guest account = smbprint
# invaild users = root
printing = cups
printcap name = cups


;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no


[printers]
comment = All Printers
browseable = yes
path = /etc/cups/printers.conf
printable = yes
public = yes
guest ok = yes
user = smbprint
# guest account = smbprint
path = /homes/smbprint
writable = yes
create mode = 0777

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
 
Old 11-29-2005, 10:54 AM   #2
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
If you are using XP (or 2000 I think) it now supports IPP natively.

I have always had issues printing using samba, XP SP2 has some buggy stuff going on with samba printing.

IPP prints flawlessly, is simple to set up, and prints about 10 times faster.


I never use samba printing anymore, work or home


http://www.gentoo.org/doc/en/printing-howto.xml


Start at "Remote Printer Access"


soule
 
Old 11-29-2005, 04:10 PM   #3
anickless
LQ Newbie
 
Registered: Nov 2005
Location: Edmonton
Distribution: Debian sarge & woody
Posts: 29

Original Poster
Rep: Reputation: 15
common i can't get even that to work!

with what i have someone must have done it before.
 
Old 12-05-2005, 10:06 AM   #4
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
I thought I already sent you a reply on this, but I guess not...

Here it is again...

Make sure you have extracted the driver files, created a "drivers" directory in the CUPS data directory (usually /usr/share/cups) and copy the files exactly as named below:

[Windows 2000 and higher]

ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll



At minimum, you need to have smb.conf configured like this:

[global]
load printers = yes
printing = cups
printcap name = cups

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root

Note: You may need to create the directory /etc/samba/drivers. If so:

mkdir /etc/samba/drivers

This configuration assumes a FHS-compliant installation of SAMBA; adjust the [printers] and [print$] share paths accordingly on your system as needed. That is, the directory for your printer drivers can be anywhere on the system; just make sure it is writable by the users specified by the write list directive plus readable and executable by all users. Also, make sure that you have SAMBA passwords defined for each user in the write list using SAMBA's smbpasswd(1) command. Otherwise you will not be able to authenticate.

To add a Samba password to the above configuration:

smbpasswd -a root

You will be prompted to enter your password twice.

Notice in the above examples that the user root was used which was defined in the write list of the smb.conf file

Finally, run the cupsaddsmb command to export the printer drivers for one or more queues:

cupsaddsmb -U root printer1 ... printerN ENTER

Running cupsaddsmb with the -a option will export all printers:

cupsaddsmb -U root -a ENTER

**(Copied most of this from CUPS website )
 
Old 12-05-2005, 10:16 AM   #5
aajmee
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
Samba Nautilis problem

Hi,
Iam using Redhat linux 9.0. i have configured samba bdc.it works fine. i have tested the configuration. they are ok. i can see shares from windows machine.
but i try to see shares through nautilis it gives me following error
"
could not display "smb:///", because no host "(null)" could be found, check that spelling is correct and that your proxy settings are correct."

i tried what i know.
if anybody help me in sorting this out, i'll be very thankful.
 
Old 12-06-2005, 08:42 AM   #6
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
I'd contact the Gnome people directly on this one. I looked through some of the other newsgroup and it is unanswered everywhere. Gnome has done something to how Gnome interacts with CUPS/Samba.
 
Old 12-14-2005, 05:07 PM   #7
anickless
LQ Newbie
 
Registered: Nov 2005
Location: Edmonton
Distribution: Debian sarge & woody
Posts: 29

Original Poster
Rep: Reputation: 15
thanks steve just one question? I have a ALOT of users for these printers and i am curious how can i just mark these as guest so anyone can use them?
 
Old 12-16-2005, 11:10 AM   #8
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
No problem. Access your smb.conf file and change the highlighted part in this section to yes:

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root


So...

guest ok = yes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printing through samba doralsoral Linux - Software 4 08-12-2004 11:38 PM
Samba printing wahmed Slackware 1 06-08-2004 05:24 AM
samba printing haydn Linux - Networking 2 07-29-2003 09:18 AM
samba printing bmcneely0 Linux - Networking 14 07-20-2003 07:07 AM
Samba printing help!! sjr Linux - Networking 2 10-04-2002 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration