百科题库网 分享最新题库资源与答题解析


38 . 用 samba 共 享 的 目 录 , 但 在 Windows 网 上 邻 居 中 却 看 不 到 , 应 该 在/etc/samba/smb.conf 中设置


A.Hidden=no
B.Browseable=yes
C.Allow Windows Clents=yes
D.Allow all client=yes

所属分类: 信息技术/IT (免费栏目) 浏览量: 257 次


问题不出在Windows上,而是Linux上面的Samba配置文件问题,修改方法如下:
1、对Samba配置文件进行备份,然后配置一个公开的目录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
rm /etc/samba/smb.conf
touch /etc/samba/smb.conf
vi /etc/samba/smb.conf
#配置一个公开的访问目录,在新创建的smb.conf文件中加入以下配置
<pre name="code" class="plain">
#========= Global Settings ========
[global]
workgroup = WORKGROUP
security = share
map to guest = bad user
#===== Share Definitions ==========
[MyShare]
#共享目录路径
path = /home/samba/share
browsable =yes
writable = yes
guest ok = yes
read only = no

2、设置文件夹权限,检测配置文件

1
2

chmod -R 0777 /home/samba/share
testparm

3、重启Samba服务即可解决

1

service smb restart# service nmb restart

以上为百科题库网整理的关于"38 . 用 samba 共 享 的 目 录 , 但 在 Windows 网 上 邻 居 中 却 看 不 到 , 应 该 在/etc/samba/smb.conf 中设置"试题答案及解析,如想学习更多信息技术/IT类竞赛题,欢迎访问www.baiketk.com查看搜索更多相关信息。

转载请注明:百科题库网https://www.baiketk.com/q_k5f041027297c0.html