?
Solved

samba printing setup

Posted on 2005-03-25
9
Medium Priority
?
281 Views
Last Modified: 2013-12-15
i am trying to setup a print server on a fedora 3 platform using samba.

windows xp sp2 correctly recognises the printer but a test document does not get printed

The follwing ports are open on the firewall: 137:udp, 139:tcp, 445:tcp

smb.config printers section looks like this
[printers]
      comment = All Printers
      valid users = phill
      path = /var/spool/samba #has read/write/execute permissions for all users
      browseable = no
      public = no
      printable = yes

What is the problem??

Phill
0
Comment
Question by:PhillO
  • 4
  • 3
8 Comments
 
LVL 38

Expert Comment

by:wesly_chen
ID: 13633182
Hi,

1. Make sure you can print from the Linux box first.

2. Setup CUPS

3. Modify the /etc/smb.conf
[printers]
     comment = All Printers
     valid users = phill
     path = /var/spool/samba #has read/write/execute permissions for all users
     browseable = no
     printable = yes
printing = cups
public = yes
printer name = deskjet940c  <=== Your printer name in CUPS.

Wesly
0
 

Author Comment

by:PhillO
ID: 13633554
It is still not working

an information dialogue appears to show the status of the print queue but it doesn't get beyond "Collecting printer status."

I haven't left a port out on the firewall settings have I?
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 13633575
Could you print on Linux?

Turn off firewall if you have any.
/etc/init.d/iptables stop
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:PhillO
ID: 13634011
Yes I can print from linux. There is nothing in the samba logs regarding the printing from the XP machine. It is almost like it never gets to samba at all. I have tried to disable firewalls on both machines but that didn't work. Mind you I didn't reboot linux without the firewall

Regards,
Phill
0
 

Author Comment

by:PhillO
ID: 13665959
I have found an answer to my own question

basically i need to set up my windows machine as a user in linux and samba and set that user as a machine trust account in samba

Phill
0
 
LVL 38

Expert Comment

by:wesly_chen
ID: 13666865
> set up my windows machine as a user in linux and samba and set that user as a machine trust account in samba
So your Windows machine name needs to be in trust machine list in SAMBA?
I'm glad to hear your issue resolved. However, I'm quite confusing about your solution.
0
 

Author Comment

by:PhillO
ID: 13667202
The solution was found on the web somewhere. I tried to find it but alas....

However... It is similar to what needs to happen in a domain setup.

On the linux server, i need to setup a user account for my desktop machine as if it was a regular user. Similarly in samba, a user account needs to be set up . Once this is done, the is a setting in samba to let samba know that it is a machine account and not a regular user.

I had to do it this way because even though i was logged into samba as an authorised user, the printer in windows kept getting "accessed denied" errors.

Perhaps there is is a better way. I'm not sure. But this works

Phill
0
 

Accepted Solution

by:
OzzMod earned 0 total points
ID: 13690527
Closed, 500 points refunded.
OzzMod
Community Support Moderator (Graveyard shift)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
This article explains how to use the rsync command to create backups and sync data across hosts. Rsync is a very useful command that is often used to copy data, make backups, migrate hosts, and bridge the gap between site staging and production envi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question