posted on Sun Jul 12, 2009 12:32 am
A few tips for using Samba on Ubuntu:
- I can confirm bthylafh's comment about Ubuntu 9.04 automatically installing Samba the first time you try to share a folder. One minor quirk: after installing the service, it brings up a dialog telling you that you need to restart your session to complete the installation. But if you click the button to confirm, nothing happens. You do in fact need to restart the session though, or things don't seem to work quite right. So just manually log out and log back in again, and you should be good to go.
- The automatic Samba installation doesn't give you any way to set the Windows workgroup name; you just end up with the default (which is "workgroup"). What you want to do is install the package system-config-samba. This will add a Samba item to your System -> Administration menu, which provides a simple GUI interface for doing the most common Samba administration tasks (like setting the workgroup name, adding arbitrary Samba users and folder shares, etc.)
- Power users may wish to install the swat package, which provides a comprehensive browser-based Samba management interface. After installing swat, change the group of the /etc/samba/smb.conf file to adm, and enable group write permission on it (you must do this to get swat to play nice with Ubuntu's security model where the root account is disabled by default). Restart the system. The management interface is accessed by opening a web browser, entering localhost:901 in the address bar, and giving the login name and password of any account with admin privileges when prompted. (Note: swat is not for the faint of heart; but it still beats manually editing the smb.conf file, which is for masochists only!)
(this space intentionally left blank)