Oct 8, 2013
19
1
3
New Richmond
cPanel Access Level
Root Administrator
Twitter
Hi,

Last week I configured my cPanel to backup all user than export that backup to a NAS, when first backup occurs, it fill up all my root partition ( backup path was : /backup ), so I decided to move the backup process to /home/backup where I have a bigger HDD, but the problem is that I receive a lot of error while creating the backup

* /home/backup/2014-06-21: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

* /home/backup/2014-06-23: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

* /home/backup/weekly: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

* /home/expedi/public_html/commandes/267: Unable to open directory: Permission denied at /usr/local/cpanel/scripts/pkgacct line 1733.

Someone have an idea how I could fix that ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Check the permission/ownership values on the directory you referenced in the output:

/home/user/public_html/commandes/267
It's likely owned by the "root" user, and thus it's not backed up.

Thank you.
 
Oct 8, 2013
19
1
3
New Richmond
cPanel Access Level
Root Administrator
Twitter
Thank you for your reply Michael,

Theses folder have the right user permission, they are owned by user and group expedi, maybe it's the permission they have who is to strict d-wxr----t (340) What do you think could be better ?

For the other part (permission in /home/backup) that look really strange, I have some folder owned by backup, and other by root ?


[/home/backup]# ls -la
total 76
drwx--x--x 14 backup backup 4096 23 jun 04:15 ./
drwx--x--x 116 root root 4096 21 jun 03:44 ../
drwx--x--x 4 root root 4096 21 jun 02:00 2014-06-21/
drwx--x--x 4 root root 4096 23 jun 02:00 2014-06-23/
lrwxrwxrwx 1 backup backup 32 17 jun 16:33 access-logs -> /usr/local/apache/domlogs/backup/
-rw-r--r-- 1 backup backup 18 21 fév 2013 .bash_logout
-rw-r--r-- 1 backup backup 176 21 fév 2013 .bash_profile
-rw-r--r-- 1 backup backup 124 21 fév 2013 .bashrc
-rw------- 1 backup backup 17 17 jun 16:21 .contactemail
drwxr-xr-x 2 backup backup 4096 17 jun 16:21 .cpanel/
-rw-r----- 1 backup backup 1 18 jun 04:23 cpbackup-exclude.conf
drwxr-x--- 2 backup mail 4096 17 jun 16:21 etc/
drwxr-x--- 2 backup nobody 4096 17 jun 16:21 .htpasswds/
drwx------ 2 backup backup 4096 17 jun 16:33 logs/
drwxr-x--- 8 backup backup 4096 17 jun 16:21 mail/
drwxr-x--- 3 backup backup 4096 17 jun 16:21 public_ftp/
drwxr-x--- 3 backup nobody 4096 17 jun 16:21 public_html/
drwxr-xr-x 5 backup backup 4096 18 jun 04:23 ssl/
drwxr-xr-x 2 backup backup 4096 17 jun 16:21 tmp/
drwx--x--x 3 root root 4096 19 jun 02:00 weekly/
lrwxrwxrwx 1 backup backup 11 17 jun 16:21 www -> public_html/



Thank you for your help again !
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
It looks like you created an actual account with the username "backup" instead of just creating the directory. I suggest using a different directory for backups if you plan to have an actual account with the "backup" username. As for the other issue you referenced, 0755 are the default directory permissions. Are you using 0340 permissions on that directory on purpose to limit access to it?

Thank you.