Both my Android phone and Windows PC cannot access my Samba share despite everything being on the local network. Windows can see RASPBERRYPI
but when I try to double click it and view its contents it say the following.
Windows cannot access \\RASPBERRYPI
I have an external USB drive formatted with ext4
and automounted with /etc/fstab
using the command. The drive mounts fine and I can create files without sudo
.
UUID=123a1aa12-d272-32fa-8rd0-7sb5aa0d7e15 /externalDrive auto nosuid,nodev,nofail 0 0
The mounted folder has these permissions.
drwxrwxrwx 4 pi users 4096 Apr 3 19:46 externalDrive
The folder I've shared at /externalDrive/localShare
has these permisssions.
drwxrwxrwx 2 pi users 4096 Apr 3 19:45 localShareFolder
The settings in /etc/samba/smb.conf
are the following. I cleared all comments and default shares, but even before that I was having the same problem.
[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[localShare]
Comment = PiLocalShare
Path = /externalDrive/localShareFolder
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes
/mnt/externalDrive
and not/externalDrive
. 3) Add to/etc/samba/smb.conf
for[localShare]
the respectiveforce user = nobody
andforce group = nogroup
.