LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-06-2010, 07:44 PM   #1
peterson.julia
Member
 
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?

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!

Last edited by peterson.julia; 09-06-2010 at 09:55 PM.
 
Old 09-06-2010, 08:03 PM   #2
suid0
Member
 
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, 08:40 PM   #3
jsbush
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
 
  


Reply


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 12:47 PM
How to change default smb.conf to another location UltraSoul Linux - Software 3 04-24-2008 02:01 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 10:43 AM
lost default smb.conf Celettu Linux - Networking 3 07-20-2004 08:24 AM
How to restore a default smb.conf file glock19 Linux - General 7 12-22-2001 06:19 PM


All times are GMT -5. The time now is 09:43 AM.

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