LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-02-2004, 08:16 PM   #1
melao
LQ Newbie
 
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12

Rep: Reputation: 0
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

[pdf]
comment = PDF creator
path = /var/tmp
printable = yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
create mask = 0600

[printers]
comment = All Printers
path = /var/tmp
printable = yes
create mask = 0600
guest ok = yes
force user = root
force group = root

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
guest ok = yes

[files]
comment = files
path = /files
writelist = root
read only = no
guest ok = yes

------end of smb.conf------


Thanks in advance!
 
Old 11-03-2004, 06:18 AM   #2
flip-top
LQ Newbie
 
Registered: Feb 2004
Distribution: OS X, SuSE 9.1, RH 8.0
Posts: 7

Rep: Reputation: 0
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.

This was with a Canon BJC series printer.

Abe
 
Old 11-03-2004, 06:43 AM   #3
melao
LQ Newbie
 
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
Do you think i would be luckier with Fedora or Conectiva ?
I have both distros on CD at home.
 
Old 11-03-2004, 07:49 AM   #4
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
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.

Last edited by -X-; 11-03-2004 at 08:32 AM.
 
Old 11-03-2004, 03:13 PM   #5
flip-top
LQ Newbie
 
Registered: Feb 2004
Distribution: OS X, SuSE 9.1, RH 8.0
Posts: 7

Rep: Reputation: 0
Quote:
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.
 
Old 11-03-2004, 04:45 PM   #6
melao
LQ Newbie
 
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
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.

Last edited by melao; 11-03-2004 at 04:47 PM.
 
Old 11-03-2004, 04:46 PM   #7
melao
LQ Newbie
 
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
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.
 
Old 11-03-2004, 05:09 PM   #8
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
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
 
Old 11-03-2004, 07:28 PM   #9
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
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.
 
Old 11-03-2004, 09:57 PM   #10
jdblick
Member
 
Registered: Sep 2004
Distribution: SUSE 10.0 OSS
Posts: 261

Rep: Reputation: 30
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.
 
Old 11-04-2004, 02:31 PM   #11
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
Quote:
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.

It looks this way :

<internet connection> --- <router> ----- <hub> ------<COMPUTERS>----<printers>----

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????????

Any comments???

CloudBuilder
 
Old 11-04-2004, 02:42 PM   #12
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
Quote:
Originally posted by jdblick

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>

CloudBuilder
 
Old 11-04-2004, 04:47 PM   #13
melao
LQ Newbie
 
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
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.
 
Old 11-04-2004, 04:47 PM   #14
melao
LQ Newbie
 
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
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!
 
Old 11-04-2004, 04:50 PM   #15
melao
LQ Newbie
 
Registered: Oct 2004
Distribution: SuSE 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
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.

Thanks man.
 
  


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
Suse 9.2 Samba, cant see Windows computers, but they can see Linux Whiskers Linux - Networking 6 05-08-2005 04:16 PM
Sharing a printer for 30+ computers with Samba rjshirts Linux - Networking 1 01-05-2005 04:24 PM
Printer sharing Linux to Windows Celettu Linux - Networking 0 07-20-2004 11:26 AM
[b]Problems sharing files between linux computers blaze Linux - Networking 5 11-27-2002 06:48 PM
Samba linux printer sharing santaman Linux - Networking 0 05-12-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:44 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