![Samba 创建帮助](https://linux22.com/image/1160313/Samba%20%E5%88%9B%E5%BB%BA%E5%B8%AE%E5%8A%A9.png)
我会尽量简短。我创建了一个 samba 服务器,它运行良好。我将 1TB 驱动器安装在 /files 上,并将 smb.conf 指向该路径。现在我想要的是让我的文件夹(Amir 的文件)和我爸爸的文件夹(Hossein 的文件)受密码保护,但我希望公共文件夹没有密码。现在它们都需要我为 samba 帐户设置的 samba 密码。此外,我需要帮助将我的本地 IP 设为静态
这是 smb.conf 文件的结尾
[Amir's Files]
comment = Amir's Files
path = /files/Amir
browseable = yes
read only = no
[Public Files]
comment = Public Files
path = /files/open
browseable = yes
read only = no
[Hossein's Files]
comment = Hossein's Files
path = /files/Hossein
browseable = yes
read only = no
答案1
这需要身份验证:
[Public Files]
comment = Public Files
path = /files/open
browseable = yes
read only = no
这不会:
[Public Files]
comment = Public Files
path = /files/open
browseable = yes
read only = no
guest ok = Yes