How do I re-install Samba?

Posted by Sheldon on Ask Ubuntu See other posts from Ask Ubuntu or by Sheldon
Published on 2012-12-05T15:24:22Z Indexed on 2012/12/05 17:26 UTC
Read the original article Hit count: 253

Filed under:
|
|
|

I recently followed a guide to configure Samba but I couldn't get it configured properly. After realizing that the guide was six years out of date I thought I should start again.

I reinstalled samba by first using these commands:

sudo apt-get purge samba
sudo apt-get install samba

But after reading my configuration file (/etc/samba/smb.conf) I noticed that it was the same file, containing the same edits I had made. I then proceeded to delete the directory and then re-install samba again.

However, the directory is not replaced after re-instillation and now I don't appear to have a configuration file. How do I get it back? Or install Samba correctly?

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about Windows