无法从Windows访问Samba文件夹(将Raspberry Pi XBMC用作Samba服务器)

时间:2013-07-10 02:07:07

标签: windows raspberry-pi samba

当我尝试通过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

1 个答案:

答案 0 :(得分:0)

这可能取决于目录和文件权限。如果运行smb的我们没有访问权限,则无法读取或写入文件。您可以使用ls -la找到文件权限,您还将看到所有者和所有者组。 您可以尝试为所有(chmod 777目录-R)设置读写权限。如果这是问题,那么您应该只向运行smb的用户授予读写权限。由于安全原因,将所有权限设置为0(770)。

Here you find a tutorial on set up samba for Rasapberry Pi.