Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to do a simple Samba server install on my Ubuntu 11.04 VM.

What I need is some shares to be public and few shares to be private.

What I need to know is what I have to keep in the config file in order to maintain a basic configuration. I want to lose the parts about domain controllers and profiles.

Oh yeah and I want to keep the printer sharing ability.

Do I just delete the part I don't want to keep? or is there a science to it?

share|improve this question
up vote 2 down vote accepted

Have you tried system-config-samba? This is an UI to configure Samba easily. It may not be as powerful as vim but for a simple configuration should suffice.

share|improve this answer
I am running command line, can't do GUI – ianc1215 Jul 7 '11 at 2:18
@Solignis Option B would be to get the basic setup on a machine with a GUI, copy the samba.conf file over to the server, and do any last minute tweaking there. That should get you up and running – TheLQ Jul 7 '11 at 3:40
That is a good idea, I will try that. – ianc1215 Jul 7 '11 at 20:35

Before you do anything, make a back of Samba's configuration file so you have something to go back to if need be.

If swat is installed, take a look at that. It's Samba's web based configuration tool. It's a bit ugly but should get you going.

If you truly only have command line access, I suggest you do some reading before you start playing with settings. Samba-3 by Example will get you up and running fairly quickly.

And remember, testparm is your friend.

share|improve this answer
Yep, I made a backup of the original smb.conf. I don't think swat is installed. What does testparm do exactly? I ran it and it gave me a dump of smb.conf that consisted of only the values that were uncommented. Is that some kind of template in a way? – ianc1215 Jul 7 '11 at 4:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.