当我尝试通过Windows 8访问文件夹时,有人可以解释我收到拒绝访问的消息吗
[global]
workgroup = WORKGROUP
usershare allow guests = yes
security=share
#security=user
follow symlinks = yes
wide links = no
unix extensions = no
lock directory = /var/cache/samba
realm = localdomain
server role = domain controller
[pi]
browsable = yes
read only = no
guest ok = yes
path = /home/pi
#force user = pi (no longer needed)
[devices]
browsable = yes
guest ok = yes
writable = yes
path = /media
[Toshiba HDD]
browsable = yes
guest ok = yes
writable = yes
path = /ToshibaHDD
答案 0 :(得分:0)
这可能取决于目录和文件权限。如果运行smb的我们没有访问权限,则无法读取或写入文件。您可以使用ls -la找到文件权限,您还将看到所有者和所有者组。 您可以尝试为所有(chmod 777目录-R)设置读写权限。如果这是问题,那么您应该只向运行smb的用户授予读写权限。由于安全原因,将所有权限设置为0(770)。