Samba problems with Ubuntu 9.04

I was trying to set up samba with a new Ubuntu 9.04 (“Jaunty Jackalope”) box, and was frustrated when windows failed to connect to the [homes] share I had enabled.

It turns out that even if you comment out all the printer configuration in /etc/samba/smb.conf, smbd will still try to connect to CUPS, and quietly die.

After setting smb.conf to log to syslog, I saw:

smbd[30539]: printing/print_cups.c:cups_connect(103)
smbd[30539]:   Unable to connect to CUPS server localhost:631 - Connection refused

The solution? Add this to the [global] section:

load printers = no

and pick up the new setting by running

/etc/init.d/samba restart

Related posts:

  1. Installing CrashPlan on Ubuntu 9.04 Server Edition
    Although rsnapshot is super for linux-to-linux backups, I’ve found CrashPlan to work very well as a backup solution for my family’s windows and mac boxes. The CrashPlan installation works pretty......
  2. Simple MySQL backup to gmail on Ubuntu/Debian
    Backing up your MySQL database (if it’s a reasonable size, like < 100s of MB) can be done with a cronjob that runs mysqldump, gzip, and mpack. First set up......
  3. Installing Phusion Passenger on Ruby 1.9.1, Nginx, & Ubuntu 10.04
    I wrote this a while back, before I knew about RVM. The Ruby Version Manager has a bunch of features that makes it better than macports for ruby and gem......
  4. Importing a local CVS repository into git on ubuntu
    Every post I found in the googles referenced pserver (CVS’s clear-text socket-server protocol) when importing a CVS repository. Until I found this. Huzzah. So I wanted to import a local......

  • In my case this was not enough as after restarting the message still appeared, although testparm -v indicated that this parameter was accepted.
    The problem was, that by default the parameter “printing” is set to cups, that seemed to cause this issues as well.
    Changing this to “printing = bsd” and subsequently “printcap name = ” (to an empty value) elimitated the problem.