Problems sharing the printer on Linux via Samba to Windows computers
SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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.
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.
Problems sharing the printer on Linux via Samba to Windows computers
Hi,
I have a desktop with a Canoon BJC1000 printer conected to the paralell port. (Yeah, i know it's freaking old printer)
On the same desktop i have Suse pro 9.1 installed.
I can print using OpenOffice no problems at all.
When i try to share that printer via it's when i got problems. I have tried using Yast and using KSambaPlugin. I have tried also to tweak smb.conf, but i am not sure if it was right or not.
Since my network is behind a router, i have no need to setup any type of authentication server or anything, i have set up on smb.conf the security level to share.
On windows when i do a find on my linux machine, i am able to see the printer and my other shares. The directories, are all right, i am able to map or use them. the printer, i am able to install on windows, but the access to it is said to be denied.
How do i do it ?
Here it goes my smb.conf file. If somebody tells me what is wrong, and what should i change i would really appreciate.
-----start of smb.conf------
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2004-04-06
[global]
workgroup = MSHOME
interfaces = 127.0.0.1 eth0
bind interfaces only = yes
printer admin = @ntadmin, root, administrator
map to guest = Bad User
server string = Samba Server
domain master = no
local master = no
ldap suffix = dc=example,dc=com
security = share
restrict anonymous = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto
printer name = canon_bjc1000
;; [homes]
;; comment = Home Directories
;; valid users = %S
;; browseable = no
;; read only = No
;; guest ok = no
;; printable = no
[users]
comment = All users
path = /home
read only = no
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = no
inherit permissions = Yes
Everyone I've spoken to about Samba in Suse 9.1 agrees that it's hosed. I've talked to at least three other users (all more advanced than I am) who have tried sharing printers with windows and no one has had any success. I personally spent about 20 hours trying everything I could think of and was never able to print. I eventually had to buy a small print server with an ethernet port to allow printing from both Linux and Windows.
If you're using cups, check your cupsd.conf and see if it allows access from others.
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#Do this for just your lan
#Allow FROM 192.168.2.*
#
#Do this for everyone.
Allow From All
</Location>
And put this in your smb.conf
[global]
load printers = yes
printcap name = /etc/printcap
printing = cups
note: the above printcap is for Slackware, SUSE may be different.
Originally posted by melao Do you think i would be luckier with Fedora or Conectiva ?
I have both distros on CD at home.
Trying Fedora couldn't hurt. About a year ago I was setting up Samba shares in RedHat and there were no problems at all. I never tried a printer, but I couldn't even get partition shares working in Suse recently.
My co-worker has done printer configs with Debian and has had no problems. Only the SuSE folks I've talked to have had Samba problems.
Originally posted by -X- If you're using cups, check your cupsd.conf and see if it allows access from others.
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#Do this for just your lan
#Allow FROM 192.168.2.*
#
#Do this for everyone.
Allow From All
</Location>
And put this in your smb.conf
[global]
load printers = yes
printcap name = /etc/printcap
printing = cups
note: the above printcap is for Slackware, SUSE may be different.
Didn't work. O winxp the printer is "Unable to connect, Access denied"
I am almost trying another distro.
But thanks! I think it might be a bug or something because what you said, is just what i find on documentation.
Originally posted by flip-top Trying Fedora couldn't hurt. About a year ago I was setting up Samba shares in RedHat and there were no problems at all. I never tried a printer, but I couldn't even get partition shares working in Suse recently.
My co-worker has done printer configs with Debian and has had no problems. Only the SuSE folks I've talked to have had Samba problems.
I'll wait the weekend. That's my deadline! If i can't make it to work, Fedora is coming.
If you are printing from Windows ( I.e Windows computer application wants to Print --e.g EXCEL) and Printer is attached to the Linux box as well as the above you need to set your CUPS printer up to accept printing from a RAW queue.
The Windows app will have converted the print stream into the appropriate output format for the Printer (ensure the Windows machine has added the printer as a Networl Printer and has the approprite printer driver).
Once I'd figured this out it works fine.
I'm Running Photoshop on a Windows XP laptop and the print output is going to an Epson 1290 on the Linux box.
Works in both 9.0 and 9.1
When trying this stuff out start with MINIMAL SECURITY and then when it's working tighten up the access rights later --otherwise you'll have to muck about wiith too many problems at the same time - make the printers browsable as well so you can see from the Windows Machine what's connected to the Linux machine.
Being half asleep I forgot to mention that you will need to restart the cups service. In SUSE there probably is a menu to stop and start cups to pickup the changes. Also, the same with samba. Sorry about forgetting that.
I was thinking about recommending SUSE to someone, and if it has problems like you described.... I'm not. Let me know how you come along with it. Thanks.
It could be a firewall. Make sure the ports are open on both computers. tcp 138 and 445 I believe. There may be another for the printer. I think 6xx? but am not sure.
I am a complete newbie to Linux. It took a while to figure it out but file sharing and printing works now. I have two XP boxes and one Linux box that the printer is hooked up to.
I do have a problem though. What if I want to kill a print job that has left the XP box and is still in the print queue on the linux box? I don't have permission as the regular user to mess with it and I don't know how to run the print manager as root.
Originally posted by jdblick It could be a firewall. Make sure the ports are open on both computers. tcp 138 and 445 I believe. There may be another for the printer. I think 6xx? but am not sure.
.
Indeed. It is.
I had such trouble before, and now I had the same kind of thing in my internal network.
I could access my winshares by ipnumber but not by name !
As soon as I turned of the SUSE firewall the problem was over (since I have a firewall on my router I don't need it so much)
By the way I discovered something else:
If I use Konqueror (with firewall on ) and type smb:// <ip adr> I can access every windows share and it doesn't bother about passwords????????
I do have a problem though. What if I want to kill a print job that has left the XP box and is still in the print queue on the linux box? I don't have permission as the regular user to mess with it and I don't know how to run the print manager as root. [/B]
I would say start the machine and login as root and then run the print manager.
==================================
If you want to kill a job you can go to the console.
login as root by typing su - password is required
type ps
you get a list of running processes.
Find the PID NUMBER of the proces in that list.
type kill -9 <pid number>
Originally posted by 1kyle If you are printing from Windows ( I.e Windows computer application wants to Print --e.g EXCEL) and Printer is attached to the Linux box as well as the above you need to set your CUPS printer up to accept printing from a RAW queue.
The Windows app will have converted the print stream into the appropriate output format for the Printer (ensure the Windows machine has added the printer as a Networl Printer and has the approprite printer driver).
Once I'd figured this out it works fine.
I'm Running Photoshop on a Windows XP laptop and the print output is going to an Epson 1290 on the Linux box.
Works in both 9.0 and 9.1
When trying this stuff out start with MINIMAL SECURITY and then when it's working tighten up the access rights later --otherwise you'll have to muck about wiith too many problems at the same time - make the printers browsable as well so you can see from the Windows Machine what's connected to the Linux machine.
Cheers
Well, how do i ocnfigure cups to accept RAW queues ?
I am able to browse the Printer using find computer showing the shares on windows.
I have already installed the drivers. It might be something either on cups or samba, i still think it's on samba because my printer shows as 'Access denied' on windows. I would imagine it's a problem of authetication with the samba server. But who knows.
The security is configured for share level.
Originally posted by -X- Being half asleep I forgot to mention that you will need to restart the cups service. In SUSE there probably is a menu to stop and start cups to pickup the changes. Also, the same with samba. Sorry about forgetting that.
I was thinking about recommending SUSE to someone, and if it has problems like you described.... I'm not. Let me know how you come along with it. Thanks.
I did that already. Don't worry. Still it didn't work. Life sux!
Originally posted by jdblick It could be a firewall. Make sure the ports are open on both computers. tcp 138 and 445 I believe. There may be another for the printer. I think 6xx? but am not sure.
I am a complete newbie to Linux. It took a while to figure it out but file sharing and printing works now. I have two XP boxes and one Linux box that the printer is hooked up to.
I do have a problem though. What if I want to kill a print job that has left the XP box and is still in the print queue on the linux box? I don't have permission as the regular user to mess with it and I don't know how to run the print manager as root.
I have disabled the Firewall. I am behind a DSL router with firewall, so i see no need for that.
Does xinetd blocks any ports by default ?
I know that XDMCP ports are closed by default.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.