Give admin user access to Dropbox folder for backup

eliassorensen

Verified User
Joined
Dec 23, 2011
Messages
10
Hello,

I am syncing admin backups from DA to my Dropbox account for extra security.

The way it is done, is that I have created a new user "backup". In that user's home folder, there is a Dropbox folder: /home/backup/Dropbox

In the Dropbox folder, I have made an admin_backup folder, where DirectAdmin should backup to.

But of course, DA doesn't have access to /home/backup/Dropbox/admin_backup

So I have done the following:

1) Create a new usergroup "sharedbackup", and added "admin" and "backup" users to that group
2) chgrp sharedbackup /home/backup/Dropbox/admin_backup
3) Added a symbolic link from /home/backup/Dropbox/admin_backup to /home/admin/dropbox_backup

But when I try to make an admin backup, I get the following error in DA:

Path /home/admin/dropbox_backup does not exist or is not accessible by the admin user.
Permission denied.

Any ideas on what to do? Running CentOS.

------- Edit:
You can see the following output. admin_backup and dropbox_backup is attached to the "sharedbackup" group, and admin is in that group.

[root@srv1 Dropbox]# ls -ld admin_backup/
drwxrwx--- 2 backup sharedbackup 4096 17 jul 10:49 admin_backup/
[root@srv1 admin]# ls -ld dropbox_backup/
drwxrwx--- 2 backup sharedbackup 4096 17 jul 10:49 dropbox_backup/
[root@srv1 admin]# groups admin
admin : admin sharedbackup
 
Any ideas on what to do? Running CentOS.
Did you get this fixed yet? If not, I'd try the method developed by Red Hat:

CentOS Linux already creates a group for each user, of the same name as the user, to facilitate a user's ability to invite other user's to read/write his file system.

So I'd simply make admin a member of the group of the backup group. Make sure /home/backup is chmod at least 710. And at least 770 for /home/backup/Dropbox. Then admin should be able tollow that path as well as read and write in it.

Jeff
 
Back
Top