WexfordStyle Posted March 24, 2019 Share Posted March 24, 2019 (edited) So I have a RaspberryPi running motion for use as a security camera and I am trying to configure it to dump the data in a shared folder on my unraid server. I am mounting the share using cifs and fstab and have been able to do this successfully. Where I am running into the problem is that after I have mounted the share, I cannot write any data to it from the RaspberryPi, I get permission denied. I have been feverishly googling to find the solution but I haven't had any luck. I have listed details of my setup below. I am sure I must be missing something, so any help to point me in the right direction is greatly appreciated. 1. I have created an account on the unraid server that has read and write access to the shared folder I am trying to write to. I am using these credentials to access the share via cifs. 2. I am using the following command: //192.168.86.2/Pi_Cam/Camera1 /home/pi/PiCam cifs -o uid=109,gid=113,credentials=/home/pi/.cifs,x-systemd.automount,iocharset=utf8,noperm 0 0 3. A local account on the RaspberryPi called motion needs access to this folder to write the footage recorded by the camera. I have given ownership of this folder to this account and it can write data without a problem prior to mounting the share. I am starting to lose my mind trying to figure this out and I am sure its something stupid that I am missing me. Save me! Edited March 24, 2019 by WexfordStyle Quote Link to comment
WexfordStyle Posted April 6, 2019 Author Share Posted April 6, 2019 Bump! If anyone could point offer any advice on this, I would really appreciate it. Quote Link to comment
WexfordStyle Posted April 8, 2019 Author Share Posted April 8, 2019 bUMP ! Still looking for some advice! Quote Link to comment
ijuarez Posted April 8, 2019 Share Posted April 8, 2019 Couple of things, have you looked at your diagnostics? any errors? Also how is the share setup in unraid. Quote Link to comment
WexfordStyle Posted April 8, 2019 Author Share Posted April 8, 2019 1 hour ago, ijuarez said: Couple of things, have you looked at your diagnostics? any errors? Also how is the share setup in unraid. I haven't looked at the diagnostics. I am not sure what to look for? I don't see anything odd in the syslog. I have attached my diagnostics for reference. Screenshots of the share is below: skynet-diagnostics-20190408-1930.zip Quote Link to comment
ijuarez Posted April 9, 2019 Share Posted April 9, 2019 I don't see anything either on the permission side but why do you have your DHCP lease set to an hour. Also have your tried connecting to the share via a Windows machine?Sent from my SM-N960U using Tapatalk Quote Link to comment
WexfordStyle Posted April 14, 2019 Author Share Posted April 14, 2019 On 4/8/2019 at 8:28 PM, ijuarez said: I don't see anything either on the permission side but why do you have your DHCP lease set to an hour. Also have your tried connecting to the share via a Windows machine? Sent from my SM-N960U using Tapatalk Hi @ijuarez, I have no idea about the DHCP lease time? I cant even find that in the settings. What should it be set to? Regarding the shares, after painfully working on this for hours and hours with no success I decided to try NFS instead. It took me under an hour to get this working. It is really unfortunate that I spent so much time focusing on SMB. Lesson learned I guess. The only troubling part is that I was never able to get SMB to work so I cant pass on any useful advice 😬. Well, other than use NFS lol. Quote Link to comment
JonathanM Posted April 14, 2019 Share Posted April 14, 2019 26 minutes ago, WexfordStyle said: I have no idea about the DHCP lease time? I cant even find that in the settings. The lease time is set on the DHCP server, likely your router. Quote Link to comment
ijuarez Posted April 15, 2019 Share Posted April 15, 2019 Hi [mention=25636]ijuarez[/mention], I have no idea about the DHCP lease time? I cant even find that in the settings. What should it be set to? Regarding the shares, after painfully working on this for hours and hours with no success I decided to try NFS instead. It took me under an hour to get this working. It is really unfortunate that I spent so much time focusing on SMB. Lesson learned I guess. The only troubling part is that I was never able to get SMB to work so I cant pass on any useful advice . Well, other than use NFS lol.While NFS is great I don't use it very much. You didn't answer if you had tried from a Windows machine to the SMB share. Sent from my SM-N960U using Tapatalk Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.