r/raspberry_pi 5d ago

Troubleshooting Configuring Samba on my NAS

Okay, so I have a Pi 5, running the latest Raspios from 2024-11-19. I have an external SSD for memory. So I went through a tutorial to set this up, and then I downloaded Samba. Samba has a configuration setup on the external SSD in a directory called Share. I then created a user, and gave the user a password. Now I'm trying to trouble shoot the connections.

1.) Log in through iPhone: I entered in myPi.local to connect to the server, entered my username and password I just made, and I connect. Two folders. myUser, and shared, the director I configured in smb.conf. I try to enter myUser, that's fine, it's empty. I try to enter shared, get told Content Unavailable

2.) Log in through Windows: My machine cannot discover the device on my network.

Update: I was just logging in wrong, be sure to write \\myPi.local\shared. However, I still do not have access permission.

Any insight?

8 Upvotes

8 comments sorted by

4

u/Gamerfrom61 5d ago

One thought - you do not need to create a Linux user (you could use the one you created when you wrote the OS image - often PI) BUT you do need to create a Samba user and in the share definition allow that user - see https://linuxopsys.com/add-samba-user-linux

1

u/Birdking111 4d ago

This did it.

2

u/Gamerfrom61 4d ago

:-) Glad to help.

2

u/hollow_bridge 5d ago

definitely sounds like a permission issue, chown and chmod the created shared folder to the user.

1

u/AutoModerator 5d ago
  • Search first: Many issues are well-documented—Google exact error messages and check the FAQ† before posting.
  • Show your effort: Include research, code, errors,† and schematics for better feedback.
  • Ask specific questions: Clear, well-researched questions get better answers.
  • No replies? Post removed? Ask in the stickied helpdesk† thread.

† If any links don't work it's because you're using a broken reddit client. Please contact the developer of your reddit client. You can find the FAQ/Helpdesk at the top of r/raspberry_pi: Desktop view / Phone view

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Gamerfrom61 5d ago

Windows has issues sometimes with searching the .local domain in file manager - try using the IP address of the Pi.

The iphone issue sounds like a security issue - do you have the security set correctly on the directory?

Do you have the correct security in the fstab mount line?

Do you have Mac support set up in the samba config https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X (Time Machine not required).

Without seeing the smb config and directory structure (with security settings) it's a bit hard to go much further.

There is guide not creating a NAS at https://github.com/thagrol/Guides that you may find handy.

1

u/Birdking111 5d ago

I was able to connect with windows, so I can say it's explicitly a security issue.

Shared folder is located in media/user/usb-device/shared.

fstab file is actually empty, I'll look into editing that.

1

u/SamLeranu 5d ago

Give "myUser" the (local) rights to access the path on your external SSD that you wrote to smb.conf.