I have set up 2 mount points on my pi 1 to a 32gb usb pen drive (mount /dev/sde1 /mnt/usb) and 1 to my nas (mount -t cifs //192.168.0.x/share /mnt/nas -o username=user,password=password)
The mounts are carried out by script called from the rc.local file that is run as soon as the pi powers on this the script is used to detect if the nas is up and running and if not mount the usb pen drive as a temp data store. this work well.
The problem I have is that I can only write to the devices if I am logged in as root but when logged in as a user (pi) I can see and read the directory’s and files but I can't write or create files. I have tried to set the permissions from SCP and locally but no joy.
I have set up a new mount point set it to full permissions for everyone (777) but as soon as I mount a device on it the permissions change to full for root and read only for the rest (755).
Is there any way I can mount the devices so that everyone gets full access.
Thanks in advance,
Adam
