View Full Version : Allow ONLY ONE Reseller to Backup/Restore his Users
Themis
03-26-2011, 11:35 AM
Is it possible that we allow only one of our resellers to use the Reseller Backup/Restore feature?
nobaloney
03-27-2011, 04:24 PM
One way would be to create a skin for that reseller that didn't include the option.
Jeff
zEitEr
03-28-2011, 01:52 AM
@Themis,
I suppose it's possible to do with this feature:
commands.allow and commands.deny for per-user control (http://directadmin.com/features.php?id=1171)
Themis
03-28-2011, 07:37 AM
Wow zeiter...,
This maybe a solution to this post: Master Reseller - Future Request (http://www.directadmin.com/forum/showpost.php?p=178125&postcount=1)
...
Example, if you want to create a Super Reseller, where that Reseller
can create other Resellers, you would create an Admin account, and add:
ALL_RESELLER
ALL_USER
CMD_ACCOUNT_RESELLER
which essentially is a Reseller, but who can create other Resellers.
...
Anybody knows if there is an explanatory command list? Any reference?
Or maybe the command a reseller uses to backup all users?
SeLLeRoNe
03-28-2011, 07:48 AM
Maybe (not totally sure but just an opinion) you should create a file like this
/usr/local/directadmin/data/users/username/commands.deny
and add into this file the following:
CMD_USER_BACKUP
This should deny access to the backup section for the selected reseller.
Regards
Themis
03-28-2011, 08:05 AM
Thanks Andrea for your opinion.
Currently we do NOT allow resellers to use the reseller backup feature (that is backup all users at once: resellers backup user accounts all the time skyrocketing cpu usage, users forget to delete old backups... It's a waste of useful disk space)
I prefer the cpanel way: users have to download their backup <== is this possible with DA?
So I presume that I should add the CMD_USER_BACKUP command at /commands.allow
Will this work if the Reseller Backup/Restore feature is disabled by admin for all resellers?
btw, your last name reminds me of Romania... I studied there...
SeLLeRoNe
03-28-2011, 08:13 AM
maybe i missunderstood something, but, the way i showed is for DENY backup to reseller, and you need to do for each reseller, i dont know if there is a way to block backup for all reseller at same time.
Put the line i gave to the .allow file will ENABLE to the reseller the possibility to do backup (i suppose).
Regarding the "force user to download" i dont think exist something.
I use to block user backup with a script that permit backup just from 1am to 7am in the night for manage load-average.
I would/will find some solution to let user have a fixed url (ex. backups.mydomain.tld) with personal user/pass for each customer where store last 2 or 3 weeks backup ( i do weekly backup, not daily).
Romania? lol my surname is from Italy ;) im frome Rome ^^
Regards
Themis
03-28-2011, 09:46 AM
i dont know if there is a way to block backup for all reseller at same time.
Hi Andrea,
There is a way to block backup for ALL resellers, via the admin level (see attached image).
We already disallow resellers to make backups, but I would like to enable the feature ONLY for 1-2 Resellers.
Anybody has implemented this?
SeLLeRoNe
03-28-2011, 11:48 AM
I see, didnt remember about this :)
So, you should try to enable using the .allow file with the command line i gave and log as reseller and try to start a backup for check is working :)
Regards
zEitEr
03-28-2011, 11:54 AM
I would another way:
1. Enable in directadmin (Admin Level). While it's not enabled here, commands.allow and commands.deny won't help you, I suppose (should be verified).
2. Deny for all resellers except that one.
Themis
02-04-2012, 02:47 AM
1. Enable in directadmin (Admin Level). While it's not enabled here, commands.allow and commands.deny won't help you, I suppose (should be verified).
2. Deny for all resellers except that one.
Can anyone confirm that this will work?
I don't have a test server...
Themis
02-05-2012, 02:38 AM
Is it possible that we allow only one of our resellers to use the Reseller Backup/Restore feature?
Is it possible to implement the Reseller Backup/Restore feature as an option when creating reseller packages/plans, or when modifying a reseller acount?
zEitEr
02-05-2012, 02:53 AM
Why not? Check with this http://www.directadmin.com/features.php?id=479
Themis
02-05-2012, 04:23 AM
It seems to me that this will affect all existing resellers.
What I want is to give certain resellers the posibility to use the Backup/Restore feature individually. Something like the option for SSH access or SSH acess for Users for example, when creating a new reseller hosting plan.
zEitEr
02-05-2012, 05:22 AM
The single feature http://www.directadmin.com/features.php?id=479 won't affect anybody at all unless you write your own script which would deal with the custom item of a package. So you've been given all necessary tips and ideas, what else you want? If you want to get it implemented on your server, then you should hire somebody to do the job, as it seems to me you're has no idea how to code it.
Themis
02-05-2012, 05:33 AM
Yes, I have no idea how to code it, but I would really like to see this feature implemented for reseller hosting plans -when creating one- like other options eg: "allow overselling".
You may consider my post as a New Feature Request.
zEitEr
02-05-2012, 05:43 AM
I do not work for Directadmin and has no permissions to move your thread to the proper sub-forum. But I can offer my assistance for accomplishing the desired. So if you're ready to pay some dollars, you are welcome to contact me by PM for discussing details.
zEitEr
02-05-2012, 06:58 AM
One thing I've missed I guess, is POST/PRE scripts, as an example you can have a look at this http://help.directadmin.com/item.php?id=349
instead of the check against IP, you can check reseller's name in user_backup_pre.sh
http://directadmin.com/features.php?id=978
NoBaloney2
02-08-2012, 08:40 AM
Poster has created a feature request so I've closed this thread. I also added a post to the new feature request thread; let's get some discussion going to see if others need this as a request before expecting DirectAdmin staff to spend some time on it if only one person needs it. Especially since they've given us the tools to do it ourselves.
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.