I am following this tutorial to create Samba Share on my Raspberry Pi Zero.
My problem is at this step:
"Make sure your user is the owner of the path you are trying to share via Samba
sudo chown -R pi:pi /path/to/share"
Operation not permitted.
I have also tried it as superuser (
sudo su), but with the same error.
If I type
mount in the terminal, the output regarding the external harddrive is:
/dev/sda2 on /home/pi/HDD type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii, shortname=mixed,errors=remount-ro)
Googled a bit and found this post, so I tried this without any error messages:
$ mount -o remount,gid=1000,uid=1000 /home/pi/HDD
mount in the terminal after this gives the same output as before.
Posted this on stackoverflow first by mistake, and got this answer:
Voted to close as off-topic for StackOverflow. vfat doesn't support ownership and groups, hence the operation not permitted. Remove the -R from the chown command. Ask on Serverfault if you still have a problem. – Alastair McCormack
-R, but still not working. Serverfault is not the place for this question, so asking it here instead.
What am I doing wrong?