误删除samba的配置文件夹samba

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
beubuntuer
帖子: 1
注册时间: 2014-02-22 22:18
系统: ubuntu

误删除samba的配置文件夹samba

#1

帖子 beubuntuer » 2014-02-22 22:25

最近刚接触samba,实现了共享文件夹
但是由于出现了点错误,想卸载重装

然后 apt-get remove samba

后来错误把 /etc/samba 文件夹下的 sam.conf sambapasswd 等所有文件删除了
也就是该文件夹下的都删除


后来发现这些配置信息 是 原本就有的 ,
然后我现在怎么办??
有办法吗??

版本 ubuntu 12.04
谁能发我一份

邮箱 [email protected]

谢谢!!!
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 误删除samba的配置文件夹samba

#2

帖子 poloshiao » 2014-02-23 0:30

https://help.ubuntu.com/12.04/servergui ... erver.html
sudo apt-get install --reinstall samba
fengcloud
帖子: 81
注册时间: 2013-10-08 16:37
系统: windows2008R2

Re: 误删除samba的配置文件夹samba

#3

帖子 fengcloud » 2014-03-07 22:52

apt-get --purge remove samba

apt-get install samba
不行么?配置文件每个人系统里的不一样不吧
Alexia
帖子: 1
注册时间: 2024-07-24 20:05
系统: windows

Re: 误删除samba的配置文件夹samba

#4

帖子 Alexia » 2024-07-24 20:08

我也误删了/etc/samba/smb.conf文件,现在完全删除samba,环境和配置文件后,重新安装samba,这个文件也没有被创建,现在只能重装了(大悲
头像
astolia
论坛版主
帖子: 6703
注册时间: 2008-09-18 13:11

Re: 误删除samba的配置文件夹samba

#5

帖子 astolia » 2024-07-25 0:49

Alexia 写了: 2024-07-24 20:08 我也误删了/etc/samba/smb.conf文件,现在完全删除samba,环境和配置文件后,重新安装samba,这个文件也没有被创建,现在只能重装了(大悲
给你写了一篇 https://forum.ubuntu.com.cn/viewtopic.php?t=494763
回复