For starters:
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]
- Which level of Windows10 are you using? Home, Pro, something else?
- Posting just your share definition is not enough. Please post the output fromRemember to wrap it with code tags when doing so.
Code:
testparm -s
- 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).
- 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.
- 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.
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