centos samba文件夹共享读取为文件

时间:2017-09-14 04:56:13

标签: linux mount samba

我使用centos 7来安装共享网络文件夹(smth),然后我使用samba(ters)共享它(smth),但是其他计算机(windows或linux)将共享文件夹(ters)作为文件读取,所以我无法打开目录 供参考:      / etc / fstab文件           //10.11.12.13/smth / smth cifs auto,rw,uid = 501,gid = 501,username = xxxx,password = xxxx,inode64 0 0

 /smb.conf
 [ters]
    writeable = yes
    path = /smth
    follow symlinks = yes
    wide links = yes
    create mode = 0777
    directory mode = 0777

Read as file, it should be folder instead

谢谢

1 个答案:

答案 0 :(得分:0)

这里重要的是可浏览的设置:

[ters]
     writeable = yes
     browseable = yes
     path = /smth
     follow symlinks = yes
     wide links = yes
     create mode = 0777
     directory mode = 0777

还要确保在更改后重新启动samba服务器(如果你是基于debian的,有两个服务要重新启动[smbd和nmbd])