Permissions and storage Ubuntu 18.04LTS

I started using Bluecherry at home few weeks ago. I have 3, Chinese, unbranded, IP cameras connected to the server. I’m not IT nerd, but I managed to connect it all and make it work but I think there is a big issue with permissions (folders, drives).

I lost one day trying to connect server and external hard drive connected to USB. The problem was, when Bluecherry had an access to the drive, other users didn’t. I couldn’t get my head around it. It would be great to get some simple manual how to do it step by step.

Second problem appeared yesterday after Ubuntu update. Cameras were working, but server did not record it. Storage was shown as 33% full in my case and 0 days available. I set permissions and it didn’t helped. I created new folder, just beside “recordings” and I used the same pattern to set the permissions/owner and this time it worked. Very weird.

Can you list the permissions of the storage path?

i.e. if you used /var/lib/bluecherry/recordings use the path before:

ls -ltrc /var/lib/bluecherry

Thanks

Hi,

I have a Backup drive in my pc and I gave path like “/mnt/Backup_drive/CCTV/”.

I have used below process : -
Note 2: Before adding a new folder, ensure that the:

  • folder exists
  • folder is empty
  • folder belongs to user bluecherry, group bluecherry.

To create directory run: "sudo mkdir -p "
To set permissions run: "sudo chmod 770
To set ownership run: "sudo chown -R bluecherry:bluecherry ".

After using “ls -ltrc /mnt/Backup_drive/”, Output is
drwxrwx— 2 bluecherry bluecherry 4096 Jul 19 17:30 CCTV.

I am getting error like…
Server could not open the specified directory “/mnt/Backup_drive/CCTV/”. See Note 2.

Please suggest the change to work it.

Thank you…

What type of drive is this that you are mounting? Is it Linux formatted or NTFS / CIFS / NFS?

Hi,

It is ext4.
/dev/sdb ext4 916G 478G 392G 55% /mnt/Backup_drive

I’ve tested and this command should work:

sudo chown bluecherry.bluecherry -R /mnt/Backup_drive ; sudo chmod 770 -R /mnt/Backup_drive

Then add the storage path