LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Reinstalling Samba doesn't recover the original /etc/samba/smb.conf (http://www.linuxquestions.org/questions/debian-26/reinstalling-samba-doesnt-recover-the-original-etc-samba-smb-conf-381898/)

Akhran 11-10-2005 03:49 PM

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.

redgren 11-10-2005 05:45 PM

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?

Akhran 11-11-2005 12:54 AM

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?


All times are GMT -5. The time now is 06:18 PM.