I run a small business server (Univention Corporate Server) which is based on Debian.
As I would like to backup my server to a NAS drive (segate goflex home), I mounted the network folder to my bareos storage (/home/bareos/storage) via cifs. In addition, the directory is writable by user bareos. "ls -la /home/bareos/storage" returns
total 4
drwxr-xr-x 2 root root 0 Jun 3 16:13 .
drwxrwxrwx 3 bareos bareos 4096 Jun 3 16:14 ..
When I try to run a backup of my sytem though, the following error message occurs:
<serverid>-sd JobId <number> Warning: label.c:374 Open device "FileStorage" (/home/bareos/storage) Volume "Full-0001" failed: ERR=dev.c:652 Could not open: /home/bareos/storage/Full-0001, ERR=Permission denied
SELinux and Apparmor are also not implmented.
Any ideas?
Kind regards,
EBC
Unfortunately, the 3 commands you kindly suggested haven't resolved the issue yet. I am now trying to unmount the disk and reset the directory to mode 755. As I am not an expert I would like to kindly ask, if the following command is correct:
# chmod 755 /home/bareos/storage
Kind regards,
EBC
# umount /home/bareos/storage
set the mode to 755
# chmod 755 /home/bareos/storage
and finally remounted the disk (settings are stored in /etc/fstab)
# mount -a.
Unfortunately, the error still occurs. Any further ideas?
Kind regards,
EBC
Thank you Denis for your suggestion. Unfortunately, the problem still occurs.
Yes I have a Linux Server. However, the Segate GoFlex Home does not support NFS if I am not mistaken.
I think the ACL causes the problem. Everytime I mount the external disk to /home/bareos/storage the ACL user and group is reset to root. If I unmount the disk, getfacl states that bareos is the user and group. Does anyone know how to permanently override this setting (setfacl only works temporarily).
Kind regards,
EBC