No smb.conf file after installing samba 4.0.9

Samba won't start and I've done 'locate smb.conf' but it can't be found. I cd'd to '/usr/local/samba/etc/' and not in '/etc/samba/' either. The samba path in in '/etc/environment' so I can start samba with 'service samba4 start' but it won't start. How can I repair this problem? Can I just copy a smb.conf from another samba server?

3 Answers

I had this problem and an error report eventually came up which identified my situation exactly - I had done;

  1. sudo apt-get remove samba --purge
  2. sudo apt-get autoremove
  3. manually deleted contents of /etc/samba including smbd.conf
  4. reinstalled samba

What I did NOT do but should have done before reinstalling samba was

sudo apt-get purge samba-common

If you do this, then reinstall, the samba directory and conf file will be reinstalled.

1

I have two of these files in /etc/samba/ and /usr/share/samba/. Investigate if you have all the appropriate samba packages installed. Mine are installed from the Ubuntu distribution using apt-get.

Also the locate is not necessarily inclusive of the entire filesystem. Use find if you want to search everything.

2

This tutorial does a really great job of explaining how to install Samba 4.0.9 including the step(s) to create /etc/samba/smb.conf.

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like