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

Problems with Samba and printing

Posted on 2004-08-27
Last Modified: 2010-03-18
Hi everyone.

I've been having a problem for a while, and I turn to you guys.
Here is a brief description of the environment:

Multiple Slackware 9 Workstations, used as Citrix clients (that's working wonders), also used in conjonction with Samba 2.2.0a to share a label printer on those same workstations.
Problem follows: Every once in a while, a print job is sent (always from the same software, it's called Magic (www.magicsoftware.com)) and that print jobs jams Samba.
Now, printer just stops working, and rebooting won't do any good.  I can still see the printer share if I browse the host, but it won't let me create a local port using it's share name.

I'm not the one who set that up, I don't know much about Samba, I'm actually not even sure if the problem is Samba related or if it's directly the linux printing system.

Here is my smb.conf :
# Global parameters
        workgroup = OUR_DOMAIN_NAME
        netbios name = PH003L
        security = SHARE
        encrypt passwords = Yes
        update encrypted = Yes
        hosts allow = 192.168.10.

        path = /tmp
        guest ok = Yes
        printable = Yes

As you can see, the file is pretty light.  My feeling is that there is a file locked somewhere (smbstatus says no), and the ONLY way I found out of this has been to re-ghost the machine...  Upgrading the samba version isn't really an option that I am considering, but I would do it if someone tells me that this is a known problem and it won't happen again if I upgrade.

As of now, it's the only problem that will send me to work in the middle of the night so I can swap computers, I REALLY wish I could fix it from home...

Question by:dunnoh

Accepted Solution

aurus earned 125 total points
ID: 11916217

It seems that you have the minimum configuration for your samab to work, the least you can try is check what files are opened for your application

but this could be complicated, since its difficult to identify the file that's causing the problem
try diffenrents command
lsof | grep /dev/lp
lsof | grep locks

and the more general

lsof | grep smb

since we dont have more info, you should "test and error" to identify the file, the next thing to do is kill the process that's locking the file
kill -9 $pid_of_the_file_causing_the_trouble

I hope you can solve this :)

Aurus tunes out.

Expert Comment

ID: 12266191
Hi folks,

Just browsing for samba stuff and came across this question. I'm fairly new to Samba, but in a previous life I used to know a fair bit about Magic, so I thought I'd pitch in just for old times sake!

Aurus has given some very good hints. If that doesn't get you there, maybe you could give some more details of your set-up. Is Magic running on a different Server - if so what OS are you using? What is the printing configuration there?

Author Comment

ID: 12287241
I think I found where the lock files are, I'm waiting for the next time it happens to let you guys know...

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
url shaping application 8 58
Does fail2ban start automatically each time system starts? 1 198
ovirt web management page 1 86
Xymon customize http timeout 2 94
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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