Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5375

Troubleshooting • Windows 10 accessing SAMBA share on Pi 5 with Bookworm Ras Pi OS

$
0
0
I've set up SAMBA shares in the past on my existing Pi3 and Pi4 and it "just worked". I'm having problems on a new Pi 5 with Ras Pi OS 5 (as supplied on an SD in a starter kit).

I have added the same lines in /etc/samba/smb.conf as the ones which work on a Pi 4 "server", and I am sharing a UNIX folder that is chown'ed and chgrp'd as root, with permissions 777 (the same as works on the PI4). I have restarted Samba with sudo systemctl restart smbd

On my Windows 10 PC, I can see the share with (in a DOS command prompt) "net view \\pi5"

(The Pi5's hostname is "pi5")

I can connect a drive letter to it "net use p: \\pi5\nas"

But if I try to access the drive "dir p:" or "dir \\pi5\nas" I get error Access Denied.

Wireshark shows (for dir p:)

SMB2 Create Request File (Windows -> Pi IP)
Create Response, Error STATUS_ACCESS_DENIED (Pi -> Windows)


The relevant lines in smb.conf (everything else is vanilla smb.conf) are:

[nas]
Comment = General purpose NAS
Path = /home/pi/nas
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes
mangled names = no


So simple guest-type access where user name on Windows does not need to match username and password on Pi.


Can anyone suggest what I might have forgotten to set up?

Statistics: Posted by martinu — Sat Aug 31, 2024 8:08 pm



Viewing all articles
Browse latest Browse all 5375

Trending Articles