Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-29-2005, 11:08 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Location: Edmonton
Distribution: Debian sarge & woody
Posts: 29
Rep:
|
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
|
|
|
11-29-2005, 11:54 AM
|
#2
|
Member
Registered: Nov 2005
Posts: 183
Rep:
|
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
|
|
|
11-29-2005, 05:10 PM
|
#3
|
LQ Newbie
Registered: Nov 2005
Location: Edmonton
Distribution: Debian sarge & woody
Posts: 29
Original Poster
Rep:
|
common i can't get even that to work!
with what i have someone must have done it before.
|
|
|
12-05-2005, 11:06 AM
|
#4
|
Member
Registered: Jan 2005
Posts: 62
Rep:
|
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 )
|
|
|
12-05-2005, 11:16 AM
|
#5
|
LQ Newbie
Registered: Aug 2005
Posts: 5
Rep:
|
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.
|
|
|
12-06-2005, 09:42 AM
|
#6
|
Member
Registered: Jan 2005
Posts: 62
Rep:
|
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.
|
|
|
12-14-2005, 06:07 PM
|
#7
|
LQ Newbie
Registered: Nov 2005
Location: Edmonton
Distribution: Debian sarge & woody
Posts: 29
Original Poster
Rep:
|
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?
|
|
|
12-16-2005, 12:10 PM
|
#8
|
Member
Registered: Jan 2005
Posts: 62
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|