LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I get the default configuration smb.conf back? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-get-the-default-configuration-smb-conf-back-830669/)

peterson.julia 09-06-2010 06:44 PM

How do I get the default configuration smb.conf back?
 
The issue is I screw up my smb.conf by SWAT and I want now the default configuration with all comments back.
I try:
apt-get remove --purge samba > it leaves the default configuration in samba/ directory

the other way is to download source package....apt-get source samba

Is there some other quicker way how to get the default smb.conf file back?

Thx

Yes but on Debian 5.0:
I uninstall samba.
Remove samba/ dir.
Install samba.
I'm unable to bring up nmbd daemon UP - missing samba/ dir with smb.conf. I create samba/ dir with smb.conf and nmbd is fine!

suid0 09-06-2010 07:03 PM

If you reinstall samba should do the thing right? you can rename samba directory in /etc and then reinstall the package.

jsbush 09-06-2010 07:40 PM

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

Or just find a default config and copy it to smb.conf


All times are GMT -5. The time now is 07:59 AM.