storage permission denied

836 views
Skip to first unread message

Escarpment Biosphere Conservancy

unread,
Jun 3, 2016, 4:45:32 PM6/3/16
to bareos-users
Hi all,

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

Marco van Wieringen

unread,
Jun 4, 2016, 3:09:43 AM6/4/16
to bareos...@googlegroups.com
chown bareos:bareos /home/bareos/storage ?

The above shows that '.' is owned by root:root e.g. /home/bareos/storage the directory
above you changed to 777 which I would fix. So the following should get you going:

# chmod 750 /home/bareos
# chown bareos:bareos /home/bareos/storage
# chmod 750 /home/bareos/storage

Seems you tried fixing the wrong directory. Also what tends to go wrong is that the
mount directory has the wrong mode so I would also make sure that you unmount the disk
and check that directory to have mode 755.

--
Marco van Wieringen marco.van...@bareos.com
Bareos GmbH & Co. KG Phone: +49-221-63069389
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens,
P. Storz, M. v. Wieringen

Bruno Friedmann

unread,
Jun 4, 2016, 7:07:18 AM6/4/16
to escarp...@gmail.com, bareos...@googlegroups.com
You don't have storage dir under your home/bareos ;)
> --
> You received this message because you are subscribed to the Google Groups "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
> To post to this group, send email to bareos...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Message has been deleted

Escarpment Biosphere Conservancy

unread,
Jun 6, 2016, 11:47:09 AM6/6/16
to bareos-users
Thank you for the prompt reply and your support.

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

Escarpment Biosphere Conservancy

unread,
Jun 6, 2016, 12:23:21 PM6/6/16
to bareos-users
So I tried to unmount the disk

# 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

geo...@free.fr

unread,
Jun 7, 2016, 4:08:29 AM6/7/16
to Escarpment Biosphere Conservancy, bareos-users
Hi,
Your commmands looks good.
Stopping Bareos, then unmounting the CIFS share, remount it and start Bareos will probably correct the rights problem (like it did for me long time ago) but what are the CIFS mount options ?
Perhaps mounting this share via NFS would be easier (NAS & Bareos SD are Linux I suppose).

Regards,
Denis

----- Mail original -----
> De: "Escarpment Biosphere Conservancy" <escarp...@gmail.com>
> À: "bareos-users" <bareos...@googlegroups.com>
> Envoyé: Lundi 6 Juin 2016 18:23:21
> Objet: [bareos-users] Re: storage permission denied

Escarpment Biosphere Conservancy

unread,
Jun 7, 2016, 12:19:15 PM6/7/16
to bareos-users, escarp...@gmail.com, geo...@free.fr
Hi,

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

geo...@free.fr

unread,
Jun 8, 2016, 5:57:30 AM6/8/16
to Escarpment Biosphere Conservancy, bareos-users
Hi,
Again ... what are the CIFS mount options ?

Denis

----- Mail original -----
> De: "Escarpment Biosphere Conservancy" <escarp...@gmail.com>
> À: "bareos-users" <bareos...@googlegroups.com>
> Cc: escarp...@gmail.com, geo...@free.fr
> Envoyé: Mardi 7 Juin 2016 18:19:15
> Objet: Re: [bareos-users] Re: storage permission denied
Reply all
Reply to author
Forward
0 new messages