Skip to content

Samba on Ubuntu 6.06

by Julian on December 12th, 2006

Dec 2008: See the bottom of this post for an update.

I’ve now got an old PC running Ubuntu Server (Dapper). This is partly a bit of “fun”, and also practical; Here are my rough plans:

  • Samba server, for file and printer sharing
  • DNS for lan names, and forwarding to VPN DNS. There are a number of machines on the LAN.
  • Perforce proxy server for VPN work, Perforce server for personal stuff
  • Firefly media server for shared iTunes
  • Apache web serving, if I get that far
  • Anything else that I get around to :-)

So far the experience hasn’t been particularly fun; a lot of google and a lot of experimentation usually works. Though I can definitely recommend the various O’Reilly manuals.

Here are some notes about setting up Samba on Ubuntu for access by XP and Mac OS X. I don’t have clear instructions, as it was a bit hit and miss:

  • Created a new group, home, for users accessing the share
  • Create linux user to access share; useradd -g home -p password user
  • For each system user; smbpasswd -a user

Actually setting up the file share was pretty easy, it was the printing that was hell. The printer is an HP OfficeJet G55 – check out and apt-get hplip. They are the drivers to use.

Other things/sites to check

If you get an “access denied, unable to connect”, it might be (as a lot of posts say) that you need to enable “use client driver = yes”. However, what you probably want is for samba to dish out the printer driver to the Windows clients. In this case you need to leave it as “use client driver = no”.

The following site was really useful. If there’s one link to look at from this post, it’s this one

http://www.linuxdevcenter.com/pub/a/linux/2005/01/13/lnxckbk_samba.html.

Also read the man page for cupsaddsmb. Note that you need to set security = user at first, later changing it.

Here’s an edited smb.conf file, which works for me. I suspect it’s slightly over complex, so comments welcome. It’s really a mashup of several other files, though it did try to create it systematically following the official documentation.

I’ve removed the previous smb.conf that was listed here, as there were several errors. I had a several problems trying to access the share from XP using the IP address or fully qualified domain name (but not the short name). I believe the solution to this was to add the line: spnego = 3DNO to the global section.   

If there’s enough interest, I’ll dig out the conf file and clean it up. Please contact me if you want to know more.

From → Uncategorized

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS