I have been trying to set up a Samba share on my Pi using this tutorial http://simonthepiman.com/how_to_setup_w ... server.php. I have followed it before to a success, but the SD card that was on went missing, so I'm starting all over again.
My basic requirements for the server is that it shares the USB Pen Drive (16gb SanDisk Cruzer) to everyone who is on the network (or in the workgroup), all with read, write, and execute permissions. I have managed to get read permissions to work, but I get "Permission Denied" when trying to write or execute.
I have mounted my USB drive to /mnt/share, which is the directory I am having issues with. I have used chmod to set the permissions for this directory to 777, but still only the root user seems to be able to write or execute. I have tried to chown the /share directory to be owned by pi (the default user), but it returns "Operation not permitted", even as root. I cant even modify my test file if I am not the root user, despite changing the permissions to 777.
Below is the line for my USB drive in /etc/fstab:
Code: Select all
/dev/sdb1 /mnt/share vfat gid=pi,uid=pi,umask=777,noatime 0 0
I won't bother including my Samba configuration file, as I think the fact that not even the default non-root user can write or execute indicates that the issue is with permissions, and not Samba.
I have seen somewhere that this issue would be caused if the drive uses a read-only file system, but by virtue of the fact that I have created a file as the root user, and I can create files on it when the drive is plugged in to my Windows 7 laptop, I doubt this is the issue.
I ran ls -l /mnt/ to find out more about the permissions of my share folder and its ownership, and it returned the following:
Code: Select all
drwxr-xr-x 2 root root 8192 Apr 10 17:05 share
Any help would be greatly appreciated, as I really have exhausted every suggestion I can find on Google and every little bit of my limited Linux knowledge.
Thanks in anticipation,