5

This has been asked before (I could link to 3 other posts I've seen here), but none of them have been answered.

I've followed this tutorial on how to set up a NAS using Samba with a Raspberry Pi. Everything works okay, the drive and files show up, I can log in fine (though only once, Windows apparently keeps me logged in after that?). The only problem I'm having is that I can't write to it. I can't create a folder or copy a file to it or anything.

I've never used any sort of Linux code, so while I'll try to help you help me in any way I can, I'd really appreciate examples of any code you'd like me to run. In general though, almost everything is set up like in the tutorial, apart from a file name, username, and one or two numbers I've tried changing that other guides have suggested (to no avail).

User and group info (id command):

uid=1001(Connor) gid=100(users) groups=100(users)

Contents of /etc/fstab:

proc /proc proc defaults 0 0 
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1 
/dev/sda /media/pi auto defaults,noatime 0 0

TL;DR

Destination folder access denied.

Any help appreciated.

Diederik de Haas
  • 809
  • 8
  • 12
Pihelp
  • 51
  • 1
  • 2

1 Answers1

1

Make a quick test - change permissions to the root folder of USB disk:

sudo chown -R your_samba_user /you_usb_disk_mount_path

and restart samba:

sudo /etc/init.d/samba restart

If that helped it means the write permissions of mount folder were wrong. That might be helpfull: https://askubuntu.com/a/229427

Satanowski
  • 41
  • 4