ubuntu + samba 共享失败

本文解决了一项关于Ubuntu 14.04环境下Samba服务配置的问题,表现为配置后仍无法访问共享文件夹的情况。通过分析Samba的日志文件,发现安装了samba-dbg后服务出现问题。最终通过重新安装特定的共享库解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

主机版本:ubuntu14.04
问题描述:Samba服务配置后仍然不通。

samba服务这么成熟的东西,本以为在ubuntu上修改下smb.conf重启就得了,但是访问还是失败。
表现是,可以看到samba中配置的共享文件夹,但是却打不开,被告知
 无法访问。您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。
指定的网络名不再可用。


最终通过 Samba的log, /var/log/samba/log.{计算机名} - 计算机名是你的windows主机名称
可以看到每次,访问出错时,都会产生大量的 err log

解决方案

I had this problem today after I installed samba-dbg to debug an issue. The whole thing just did not work and uninstalling samba-dbg did not fix the issue. What did fix the issue was running the following:

 $ apt-get install --reinstall libsmbclient libsmbclient-dev libtevent0 libtalloc2

I think there was a miss match of shared libraries with either tevent or talloc. After reinstalling all the libraries all was fixed.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值