Suse Leap and cifs: using a dedicated hard drive

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
carverknut
Posts: 11
Joined: Sun Jan 15, 2017 9:16 am

Suse Leap and cifs: using a dedicated hard drive

Post by carverknut » Sun Nov 11, 2018 9:46 pm

Hello,
i could successfully install 1.30.4 on a new install of Suse Leap 15. Both ffmpeg and vlc protocols produce video streams from my camera.

Now I wanted to symlink events and images to a directory on my NAS.

Following the directions in https://wiki.zoneminder.com/Using_a_ded ... Hard_Drive
did not bring success. I cannot change the ownership of my new directory on the NAS (events, images) with the command
chown -R apache:apache /symlink/events

as apache seems to be an invalid user. If I use wwwrun instead of apache it is a valid user, still the permission to change the ownership is not permitted.

I think that it is either about the permissions on the NAS's side (which I checked), or the attributes in the fstab symlink setup of 'events' and 'images'.

Any comment or link to further sources is most welcome.
thanks,
Knut

bbunge
Posts: 2704
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Suse Leap and cifs: using a dedicated hard drive

Post by bbunge » Mon Nov 12, 2018 2:33 am

The problem is getting a reliable connection to the nas when your Zoneminder server boots up. In Ubuntu I tested using systemd to mount a share which worked well because Zoneminder can be delayed until the mount is connected. You also need to have a file system on the nas that understands symbolic links.
Check put the WIKI for zm Ubuntu for the steps to do systemd mount.

mikb
Posts: 476
Joined: Mon Mar 25, 2013 12:34 pm

Re: Suse Leap and cifs: using a dedicated hard drive

Post by mikb » Mon Nov 12, 2018 5:42 pm

What file system is your NAS using? FAT? ext2/3/4? NTFS?

A lot of these cheaper/lower end NAS boxes still use FAT file systems internally that don't know a thing about permissions and ownership, and so the NAS (or linux) may have to fake up some answers for you when accessed over the network.

I have two NASes here, where all files are owned by "root.root" no matter what I do, symlinks are a mystery, and any changes in mode (rwx) are automatically applied to user, group, and other, in parallel -- so no "rwxr-x-r-x" distinctions.

I don't use them for ZoneMinder :)

carverknut
Posts: 11
Joined: Sun Jan 15, 2017 9:16 am

Re: Suse Leap and cifs: using a dedicated hard drive

Post by carverknut » Thu Nov 15, 2018 8:58 pm

Hi,
thanks for your advice. I have to admit that I gave up setting up cifs as a protocol. Instead, I switched to nfs - and thus I was successful in chown the events and images folder on my NAS system to wwwrun.
So: it works!
thanks again,
Knut

mikb
Posts: 476
Joined: Mon Mar 25, 2013 12:34 pm

Re: Suse Leap and cifs: using a dedicated hard drive

Post by mikb » Fri Nov 16, 2018 4:26 pm

... which means your underlying file system probably *is* something usable (ext2-3-4) and it's just that the CIFS/SMB implementation is only expecting to talk to DOS level computers.

Glad you sorted it.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests