I've been mounting my network share with the following entry under crontab:
sudo mount //192.168.1.1/usbdrive /home/pi/usbdrive
Since yesterday I've been unable to write information to it because the owner is set as root and write permissions are set to owner only. I've now tried to do this via fstab:
//192.168.1.1/usbdrive /home/pi/usbdrive cifs iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm 0 0
Unfortunately, the directory is still being mounted under owner=root.
Can anyone shed some light on this?
Sometimes the usb stick runs into an issue where I need to unplug it from my router. I was thinking that it might have caused some problem. However, I am able to access the share via my Windows machine, so it seems to be working correctly on the router's side.
I've deleted the /home/pi/usbdrive and started over, with reboots in the middle. Nothing worked.
Appreciate the inputs.