From 77e2c2c84e47d38d2fa1b1756f6df19a86543d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=85=8B=E9=94=8B?= Date: Wed, 24 Mar 2021 20:36:22 +0800 Subject: [PATCH] =?UTF-8?q?add=20samba=E9=85=8D=E7=BD=AE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "samba\351\205\215\347\275\256" | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 "samba\351\205\215\347\275\256" diff --git "a/samba\351\205\215\347\275\256" "b/samba\351\205\215\347\275\256" new file mode 100644 index 0000000..37f7aac --- /dev/null +++ "b/samba\351\205\215\347\275\256" @@ -0,0 +1,19 @@ + 3. Samba服务 + a. 修改/etc/samba/smb.cfg + [zhengguojian] + comment = share for other + path = /home/zhengguojian + available = yes + browseable = yes + public = yes + writable = yes + valid users = zhengguojian + create mask = 0777 + directory mask = 0777 + b. 添加samba用户 + sudo smbpasswd -a zhengguojian + 重启samba服务 + sudo service smbd restart + + c. Centos会由于enforce的原因无法通过samba有效访问服务器,可以设置“防火墙”关闭: + sudo setenforce 0 -- Gitee