LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-10-2005, 03:49 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf


I accidentially overwrite the /etc/samba/smb.conf with swat before I did a backup of the original. Doing a 'aptitude purge samba' followed by 'aptitude -r install samba' doesn't recover the original /etc/samba/smb.conf. In fact, with the purge option, /etc/samba/smb.conf wasn't even removed. Isn't purge option suppose to remove all configuration files? If I manually remove /etc/samba/smb.conf and reinstall samba, samba can't even start up, cos of the missing smb.conf in /etc/samba(reinstalling samba doesn't recreate the /etc/samba directory even).

Please advise.

Thanks!
PS. Of cos, the easier way would be to install samba on another machine and copy the file over, but I'm curious why the aptitude purge option doesn't remove the configuration file and the install option doesn't recreate the original smb.conf file.
 
Old 11-10-2005, 05:45 PM   #2
redgren
Member
 
Registered: Nov 2004
Distribution: Debian,Homebrew
Posts: 54

Rep: Reputation: 15
That is strange.. samba used to have it's own configuration scripts (around the potato time-frame). The purge should remove it... to add it back in, have you tried the : dpkg-reconfigure --priority=medium package command?
 
Old 11-11-2005, 12:54 AM   #3
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
Yes, I did. In fact, as I did another purge, I notice only config files in /etc/default/samba are removed. Nothing about /etc/samba.


Quote:
Originally posted by redgren
That is strange.. samba used to have it's own configuration scripts (around the potato time-frame). The purge should remove it... to add it back in, have you tried the : dpkg-reconfigure --priority=medium package command?
 
  


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
can't load /etc/samba/smb.conf ALInux Linux - Networking 3 10-16-2005 10:05 AM
How to edit /etc/samba/smb.conf dazzyboi Linux - Newbie 3 07-26-2004 04:36 PM
samba smb.conf lukalinuix Linux - Networking 5 06-21-2004 06:32 AM
/etc/samba/smb.conf tsitras Linux - Newbie 2 04-09-2004 08:33 PM
samba server and smb.conf gogo Linux - Software 1 05-04-2001 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:39 PM.

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
Open Source Consulting | Domain Registration