?
Solved

samba printing setup

Posted on 2005-03-25
9
Medium Priority
?
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
9 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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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

765 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