我有一个共享文件夹在这个位置,即时尝试共享使用桑巴(版本4.1.11)在Ubuntu 14.10 /媒体/ aravinda / f6c682f3-5271-4f2b-99e8-93aa3bd39990 /共享
/ media / aravinda / f6c682f3-5271-4f2b-99e8-93aa3bd39990 /是一个挂载分区/ dev / sda1 ..挂载为ext4 ..
这是我上面的文件夹的共享权限..
和sambaconfiguration如下
#======================= Global Settings ===================================== [global] workgroup = REXXXXPSL hosts allow = 127. 172. 172.16. load printers = yes security = user map to guest = Bad User dns proxy = no #============================ Share Definitions ============================== [shaa] path = "/media/aravinda/f6c682f3-5271-4f2b-99e8-93aa3bd39990/share" force user = nobody force group = nogroup nt acl support = no browsable = yes guest ok = yes read only = no
我在Windows PC得到这个错误..不pipe我什么谷歌和尝试..
错误是“您可能没有权限使用此networking资源,请联系此服务器的pipe理员以确定您是否具有访问权限,访问被拒绝。
净configuration工作站如下..
testparm结果
Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Processing section "[shaa]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = REXXXXPSL map to guest = Bad User dns proxy = No idmap config * : backend = tdb hosts allow = 127., 172., 172.16. [shaa] path = "/media/aravinda/f6c682f3-5271-4f2b-99e8-93aa3bd39990/share" force user = nobody force group = nogroup read only = No create mask = 0755 guest ok = Yes nt acl support = No
ps:我的ubuntu pc ip是172.16.30.110,networking范围是172.16.0.0./16
不知道我在做愚蠢的地方,无法弄清楚,虽然我已经花了很多时间检查configuration和类似的线程在谷歌..任何帮助/提示将不胜感激,因为即时通讯完全卡在这个,不pipe我做什么..
我已经添加login到我的smb.conf文件
log level = 3 log file = /var/log/samba/log.%p max log size = 5000 debug timestamp = yes
然后用tail -f log.%p | grep 172.16.100.190
tail -f log.%p | grep 172.16.100.190
(其中172.16.100.190是windows clent)
下面是错误输出…
Allowed connection from 172.16.100.190 (172.16.100.190) com-dc01-hof (ipv4:172.16.100.190:1644) connect to service IPC$ initially as user nobody (uid=65534, gid=65534) (pid 6096) com-dc01-hof (ipv4:172.16.100.190:1644) closed connection to service IPC$ process_local_master_announce: from COM-DC01-HOF<46> IP 172.16.100.190 to REXXXXPSL<1e> for server COM-DC01-HOF. process_local_master_announce: from COM-DC01-HOF<46> IP 172.16.100.190 to REXXXXPSL<1e> for server COM-DC01-HOF. check_for_master_browser_success: Local master browser for workgroup REXXXXPSL exists at IP 172.16.100.190 (just checking). check_for_master_browser_success: Local master browser for workgroup REXXXXPSL exists at IP 172.16.100.190 (just checking).
iptables状态
刚刚find一个解决方法..不知道是什么原因,但通过更改挂载点到不同的位置修复问题..而不是安装/ dev / sda1到/ media / aravinda / f6c682f3-5271-4f2b-99e8-93aa3bd39990 /我已经把它安装到一个文件夹/ testt在同一个用户和组nobody:nogroup和777权限,因为它是..现在它的工作
如果有人找出原因,请做评论或回复..我只是想知道为什么它是这样的!