Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 41716  / 1 Year ago, sun, march 19, 2023, 8:20:14

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?


More From » networking

 Answers
4

Yes, already posted in the comments as a verified solution, but posting as an answer anyway.



Purging should indeed remove the configuration files as well, yet the configuration of the Samba server is tracked by the package samba-common, not samba. Yes, it's a bit confusing.



So, try purging and re-installing both packages like this:



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

[#33851] Tuesday, March 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
clegian

Total Points: 283
Total Questions: 115
Total Answers: 115

Location: Morocco
Member since Tue, Feb 2, 2021
3 Years ago
clegian questions
;