编辑smb.conf

1.在[global]中 

找到  

security = 

将其改为  

security = share

 

2. 在文件中加入自定义的共享目录

      [attachment]
        path=/data/attachment
        public = yes
        only guest = no
 writable = yes \\允许写入

 

3.重启samba

service smb restart

 

--可写的共享

在smb.cnf 中添加结点,配置如下:

[data]

        comment = share file
        path=/data/share
        public = yes
        only guest = no
        writable = yes

 

然后将共享的目录权限设为777

chmod 777 /data/share

 

关闭SELIUNX:

[root@bogon samba]# getenforce
Enforcing
[root@bogon samba]# setenforce 0
[root@bogon samba]# getenforce
Permissive

 

相关文章:

  • 2021-07-01
  • 2021-04-13
  • 2021-12-26
  • 2021-09-02
  • 2021-09-24
  • 2021-06-06
  • 2021-12-03
  • 2021-11-05
猜你喜欢
  • 2021-08-19
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-06-13
相关资源
相似解决方案