How to install and configure samba in ubuntu 11.04 Natty Narwhal and 11.10 oneiric ocelot via GUI

If you want to share files between your Ubuntu and Windows computers, the best option is to use Samba file sharing. In our previous posts, we did show you how to install  and configure  samba in ubuntu via command line, Today we will do the installation and configuration in ubuntu  10.10 Maverick Meerkat and Ubuntu 11.04 Natty Narwhal via GUI (This Tutorial also works in LinuxMint). There are many tools that make it easy to install and configure samba using a graphical interface, one of them Samba server configuration tool and S.W.A.T.

If you are new to ubuntu:

“Samba is a free software re-implementation of SMB/CIFS networking protocol, originally developed by Australian Andrew Tridgell. As of version 3, Samba provides file and print services for various Microsoft Windows clients and can integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a domain member. It can also be part of an Active Directory domain.Samba runs on most Unix and Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple’s Mac OS X Server (which was added to the Mac OS X client in version 10.2). Samba is standard on nearly all distributions of Linux and is commonly included as a basic system service on other Unix-based operating systems as well. Samba is released under the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the standard protocol used by the Microsoft Windows network file system. ”


Before to start we need to install samba, you can do that from Ubuntu software center or by command line :

sudo apt-get install samba samba-common 

I – Installation and configuration using Samba Server configuration Tool

After samba is installed we need to install the graphical interface System-config samba using the command:

sudo apt-get install  system-config-samba

Now we will try for example to share the directory  /home/pirat9/Music folder to do that,

 First open GUI samba  server configuration tool by going to System–> Administration–>Samba

  • Edit  existing shares

  • Add  new  share

Find more details about the configuration of samba using this tool in our previous post.

II -Installation and configuration using SWAT. Web samba  adminitration tool

SWAT is a tool that allows Web-based configuration of Samba. It has a wizard that may help to get Samba configured quickly, it has context-sensitive help on each smb.conf parameter, it provides for monitoring of current state of connection information, and it allows networkwide MS Windows network password management.

SWAT uses integral Samba components to locate parameters supported by the particular version of Samba. Unlike tools and utilities that are external to Samba, SWAT is always up to date as known Samba parameters change. SWAT provides context-sensitive help for each configuration parameter, directly from man page entries.

Note : Before using SWAT, please be warned SWAT will completely replace your smb.conf with a fully optimized file that has been stripped of all comments you might have placed there and only nondefault settings will be written to the file.

To install SWAT open terminal and type the command:

sudo apt-get  install  swat

This will install SWAT also samba and dependencies.

Now to access SWAT, open your browser and  type :

http://your- ip:901 or http://localhost:901

Then use your root  login and password

Login admin page:


Global informations


  • Wizard  to  edit  the  samba  config

  • Server Statut:

  • View  of  the  actual samba  config:

  • Changes  admin password  page

For more posts about the installations and cofiguration of Samba in ubuntu, please read our previous posts.
Note: If you need help please post your problem in the comments and we will help you to resolve the issue.

  • ubuntupunk

    No wizard option, just home, status, view, password

  • Moinul Abrar

    I have a Canon PIXMA iP2772 Printer. How to install and configure this printer in Ubuntu 10.10 Maverick Meerkat?
    Please help. With thanks
    Moinul Abrar

  • Dirk

    Magic! thanks

  • gajendra

    hi had install the samba .now by using sambahow can i access linux mint from win.basically i want to use it in implementation of cloud computing..
    reply me

  • david mcgowan

    if you dont know that samba is a file sharing application then you probably should do some more reading before trying to go with your cloud computing

    your probably going to have more luck with ssh or telnet to do cloud computing

  • Martin Webster

    Thank you. Just what I needed. Simple and to the point. Also works for Linux Mint 10

  • Anonymous

    seh ich auch so ^^

  • Norberto Kawakami

    Great post… I’ve just installed it and its working fine…

  • Andrew Thomas

    I encountered the following issue after I installed Samba: I tried to print a MS Word 2007 from a Windows 7 machine (the printer was connected to the Ubuntu 11.04 PC) and the printed page showed all characters in a line overlapped in just one space. Thanks in advance for any suggestions.

  • AlanaMunoz

    Some time before, I needed to buy a house for my business but I did not have enough money and could not purchase anything. Thank goodness my father suggested to take the business loans from banks. Thence, I did that and used to be satisfied with my secured loan.

  • Casper Hofman

    I have samba installed on ubuntu 11.04 and configured a share homes.the problem is that the share is visible but not accesabel from a windows vista,however from my XP computer there are no problems.

    I think that the vista logon differs from the XP logon.
    Please help me.

  • buy essays

    All should be okey in your research activity if guys choose the experienced essay writing corporation to buy essay at. Therefore that used to be executable to buy term paper referring to this post.

  • Entrance Essay

    I am very grateful, wonderful compilation what I found upsetting is though why we keep on reinventing systems. Now is it something you have find or you pick just to buy Synthesis Essay, if so please let me know if there is any such…

  • essays

    Keep on moving this direction and I know that you will get an award, because some people term paper and lots of friends of mine could fin out your site or really great fact close to essay.

  • Max B

    Hi I followed everything up to starting the samba config gui. It asked for a password, and wouldn’t accept the admin password. Is there another password?

  • dissertations

    The best model dissertation about this good post made by custom thesis service or dissertation service should be a very good move to the success.

  • buy thesis

    I opine that a lot of thesis service or custom dissertation services can take you to complete such kind of great writing a thesis connecting with this topic.

  • forum posting services

    Do you guess that is extra expensive to utilize forum posting service? Nevertheless, it can be more expensive if you try to make your search engine optimization stuff by your own!

  • dissertations

    You know that you would work on dissertation writing or essays writers, just because students would like to know the super news just about this topic or custom thesis therefore they buy papers online.

  • writing service

    Look around at your dudes! Do they buy term papers? Do you want to do the same? I suggest to research the internet right before you do that!

  • rss submission sites

    When the content and links of your site change continuously, you will have to use the best rss feed submission service, just because it can improve your traffic to your site.

  • Loren41

    In your instructions you say
    First open GUI samba server configuration tool by going to System–> Administration–>Samba

    I am running Ubuntu 11.10 and can’t find this string of commands. Need help.

  • flavor-dave

    Isn’t SWAT depricated in modern releases?  It should probably be removed from this article as it’s no longer relevant (and REALLY messes up the smb.conf if you do use it).  

    Have you tried what you recommend on a from-scratch install?  Good luck!

  • web hosting forum

    Thanks for sharing this information,really its very informative.

  • mhstar

    Hi porat9,
    Nice tutorial and guidelines. I have installed and configured amba on rhel 6. refer to this post :

  • Jimmy Fallon

    I’m very happy to read this. I really like your blog; the way you create posts and topic you roofed are simply fantastic. Appreciate your sharing.

  • Local Price

    Samba tutorial was very helpful…the one I have been searching form some time on the web. 

  • Samuel

    Had some initial issues configuring Samba but realized the mistake and everything worked rightly. Thanks again for sharing this. 

  • james

    GOOD LORD. I went through and tried manually setting up all my conf files and was on the verge of just saying “screw it” and reinstalling Windows when I found this. Literally 2 seconds later it’s up and running. I’m like that guy who calls in to tech support and gets mad at the tech for fixing his issue in 3 seconds because it makes him look like an idiot. I’m that guy. right now.

  • Pingback: Instalar y configurar Samba en XFCE (Xubuntu) | El Blog de Ragadast()