Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-06-2010, 06:44 PM   #1
Registered: Nov 2009
Distribution: All flavors...
Posts: 37

Rep: Reputation: 1
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?


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!

Last edited by peterson.julia; 09-06-2010 at 08:55 PM.
Old 09-06-2010, 07:03 PM   #2
Registered: Jul 2005
Location: Brazil
Distribution: Slackware, openSuSe, Ubuntu, Fedora
Posts: 56

Rep: Reputation: 16
If you reinstall samba should do the thing right? you can rename samba directory in /etc and then reinstall the package.
Old 09-06-2010, 07:40 PM   #3
LQ Newbie
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
sudo apt-get install purge
sudo apt-get install samba

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open configuration file "/etc/samba/smb.conf" Permission denied jijawm Linux - Enterprise 8 08-18-2010 11:47 AM
How to change default smb.conf to another location UltraSoul Linux - Software 3 04-24-2008 01:01 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
lost default smb.conf Celettu Linux - Networking 3 07-20-2004 07:24 AM
How to restore a default smb.conf file glock19 Linux - General 7 12-22-2001 05:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration