我在这个位置有一个共享文件夹,我试图在ubuntu 14.10 /media/aravinda/f6c682f3-5271-4f2b-99e8-93aa3bd39990/share中使用 samba (版本 4.1.11)进行共享
/media/aravinda/f6c682f3-5271-4f2b-99e8-93aa3bd39990/ 是一个挂载的分区 /dev/sda1 .. 挂载为 ext4 ..
这是我对上述文件夹的共享权限..
和samba配置如下
#======================= 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 中遇到此错误 .. 无论我用谷歌搜索什么并尝试..
错误是“您可能没有使用此网络资源的权限。请联系此服务器的管理员以了解您是否具有访问权限。访问被拒绝。”
网络配置工作站如下..
测试参数结果
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,网络范围是172.16.0.0./16
不知道我在哪里做傻事,虽然我花了更多时间检查谷歌中的配置和类似线程,但我无法弄清楚。任何帮助/提示将不胜感激,因为无论我做什么,我都会完全陷入困境。
我通过添加登录到我的 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
(其中 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 状态..
刚刚找到了一种解决方法..不确定是什么原因,但是通过将安装点更改为不同的位置来解决问题..而不是将 /dev/sda1 安装到 /media/aravinda/f6c682f3-5271-4f2b-99e8-93aa3bd39990/位置我已经将它安装到同一用户和组nobody:nogroup和777权限下的文件夹/testt ..现在它的工作
如果有人找出原因,请发表评论或回复.. 我只是想知道为什么会这样!