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

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

$
0
0
For starters:
  1. Which level of Windows10 are you using? Home, Pro, something else?
  2. Posting just your share definition is not enough. Please post the output from

    Code:

    testparm -s
    Remember to wrap it with code tags when doing so.
  3. Does /home/pi have at least 705 permissions (rwx---r-x)? Without r-x permissions for "other" the Samba server will be unable to traverse your home directory. Defautl permissions on a user's home directory under Bookworm are 700. Given you have stated things work when you log in as pi but not when you log in as a guest... (guest access is done using the Linux user nobody).
  4. Have you changed your Windows settings to permit the use of Guest logins to SMB servers? Up yo date version of win10 and win11 have this disabled by default.
Some initial comments based soley on your share defintion:
  • create mask and directory mask have no impact on existing files and directories. They only apply to new files and directories created by the client.
  • Public and Guest ok are synonyms. You don't need both.
  • Generally smb.conf parameters are all lower case. Some of yours are capitalised. I'm not sure whether that matters though.
  • While not likely to be the cause of your problems, mangled names = no may cause further issues once login has been resolved.
    illegal (default) - does mangling for names with illegal NTFS characters. This is the most sensible setting for modern clients that don't use the shortname anymore.
One other thing: having a sub directory of your user's home directory and it's contents owned by root is generally not a good idea. Not least because if you are using guest access from the WIndows all Linux filesystem access will be done as the Linux user nobody. 777 permissions also means absolutely any one with local or remote access to that directory can change or delete it and it's contents. Not exactly secure.

If that directory is soley for NAS data put where it should be: under /srv.

[shameless self promotion]
You might find the Samba related sections of Building A Pi Based NAS to be useful.
[/shameless self promotion]

Statistics: Posted by thagrol — Sat Aug 31, 2024 11:21 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles