View Full Version : DA User Tool
l0rdphi1
11-26-2003, 05:39 PM
This is a tool that currently allows Users to be converted to Resellers, Resellers back to Users, and changing of any user's owner. See below for a full features list.
Current Version: v1.2
Last updated 2004-02-06 at 7:01 PM EST
Instructions: wget http://www.l0rdphi1.com/tools/dausertool.pl perl dausertool.pl Follow on-screen instructions.
Features: Convert Users to Resellers
Convert Resellers to Users
Change the owner of users
RH and FBSD support
Have fun! ;)
UltimeWWW
11-26-2003, 05:51 PM
GREAT idea here :)
l0rdphi1
11-26-2003, 05:54 PM
Thanks :)
Example run:
perl dausertool.pl -fr l0rdphi1 sumaleth
User `l0rdphi1' has sucessfully been converted to a Reseller.
User `sumaleth' has sucessfully been converted to a Reseller.;)
ProWebUK
11-26-2003, 05:59 PM
Tool added to the DA server checklist under 'add-ons & advice' section :)
http://www.directadmin.com/forum/showthread.php?s=&threadid=65&perpage=20&pagenumber=1
Chris
l0rdphi1
11-26-2003, 06:02 PM
Good job :cool:
S2S-Robert
11-28-2003, 09:39 AM
Perhaps this could be integrated in a new version?
FarCry
11-29-2003, 05:14 AM
very very nice, i think this might come in handy!
l0rdphi1
11-29-2003, 08:41 AM
S2S-Robert sent me an email asking for some new features. Here was the key part of my responce:
I do actually have plans to extend the tools ability via 'change user name' and 'change user owner' functions, along with anything else thought up, but all time permitting, of course.
On incorporating this into DA, I don't have any problems with that, but I'm not exactly sure how it would work, especially when I want to release a new version, but nonetheless it could work.
FarCry
11-29-2003, 09:29 AM
you would create a custom script linked out of DA :)
rename user shouldnt be too hard to do...
l0rdphi1
11-29-2003, 09:41 AM
Originally posted by phriendly-Mark
you would create a custom script linked out of DA :)Yes, I see... linked out of DA? *grumble* Not sure exactly how you mean to do that there ;) Maybe we should wait to see what John/Mark thinks of this and how it would be done.
Originally posted by phriendly-Mark
rename user shouldnt be too hard to do... That's the easy part :D
*edited for clarity*
FarCry
11-29-2003, 09:54 AM
linked out of DA with an icon :) just as if it was a standard feature!
l0rdphi1
11-29-2003, 10:00 AM
Okay, I see.
Hmm. :)
FarCry
11-29-2003, 10:06 AM
I had john make me some API functions to allow exactly this to happen. I will make an php class and perl module to use these fast and easily once 1.203 is released.
l0rdphi1
11-29-2003, 10:17 AM
If they're API functions I can probably do it simply by using the class I already wrote; can't wait to see how this turns out :)
FarCry
11-29-2003, 10:34 AM
you can, they are pretty simple.
l0rdphi1
12-03-2003, 09:19 AM
Originally posted by phriendly-Mark
I had john make me some API functions to allow exactly this to happen. I will make an php class and perl module to use these fast and easily once 1.203 is released.
Any news on these APIs?
DirectAdmin Support
12-03-2003, 10:46 AM
It this what you're looking for?
http://www.directadmin.com/features.php?id=234
I'll try and update the api.html file, as there are a few commands that need to get added.
John
l0rdphi1
12-03-2003, 12:29 PM
Okay, I *think* I understand where this is going. I can create an external script and tap into DA's current session to validate the end user. Interesting.
This brings a few questions up for me. First, where can I get 'session_id' from? A cookie? If this is stored in a cookie, will not the browser have to access scripts via port 2222? Maybe the cookies aren't port-2222 specific, but I'm positive a script couldn't be located just anywhere on the server.
Looking good though; keep up the good work. I guess I was after more of a 'plugin' API for DA. An API where I wouldn't have to modify a skin to link my script directly from DA, e.g.,
$plug = new Plugin('DA User Tool');
$plug->add_admin_option('User Tools','CMD_USER_TOOLS');
if ( $plug->cmd = 'CMD_USER_TOOL' )
{
// someone clicked on the user-tools link...
}
// or even a structure like:
class DAUserTool extends DAPlugin {
var $name = 'DA User Tool';
var $key = 'DA_USER_TOOL'; // cmd key to get into this plugin
function chooser()
{
if ( $this->user_level == 'admin' && ... )
{
$this->user_tools_menu();
}
}
function on_add_user_save()
{
// do stuff... :}
}
function user_tools_menu()
{
echo "blah blah";
}
}In DA I'm not sure how CMD's are handled, but to do this you'd most likely have to call an external PHP and/or Perl script when the CMD value specified can not be found in DA itself.
Just an idea, but it's probably a bit too much.
DirectAdmin Support
12-03-2003, 02:34 PM
|SESSION_ID| and the cookie named "session"
John
Icheb
01-19-2004, 02:57 PM
I am really really really sorry for this giant kick, but i do have a question.
I used this tool today to migrate a user to a reseller account, but the reseller account the user is created from still lists it in allocated quota size.
How can i make sure this migrated user, made by a reseller called 'abcd' entirely goes to the admin as if it was created by the admin user.
Second note: After the migration no IP's are standard transferred to the reseller to use...
Thanks in advance,
Icheb
edit:
I can explain this way simpler :D :
Ok, so far i have :
* converted the user to a reseller
* added an ip to use for the reseller
* changed the user.conf so that the reseller appears to be created by admin instead of another reseller
* changed users.list of the original reseller so that the new reseller is no longer listed
Problem : The for the user/new reseller allocated disk space is still available on the reseller panel for the reseller that previously had the user. How do i change this to reflect the correct settings without deleting the reseller ?
l0rdphi1
01-19-2004, 06:58 PM
Originally posted by Icheb
* changed the user.conf so that the reseller appears to be created by admin instead of another reseller
* changed users.list of the original reseller so that the new reseller is no longer listedBoth are fixed in version 1.1 (available from original post).
Originally posted by Icheb
Problem : The for the user/new reseller allocated disk space is still available on the reseller panel for the reseller that previously had the user. How do i change this to reflect the correct settings without deleting the reseller ? Not sure. If all instances of the new reseller have been removed from his/her old reseller's data, DA should not do that. Has DA retallyed since you executed the conversion?
Icheb
01-19-2004, 10:29 PM
Originally posted by l0rdphi1
Both are fixed in version 1.1 (available from original post).
Thanks :)
Not sure. If all instances of the new reseller have been removed from his/her old reseller's data, DA should not do that. Has DA retallyed since you executed the conversion?
No, it hasn't, but it did during the night, this problem is solved.
Is it possible to make DA retally a bit more than just once a day ?
Or will this damage the logs or something ?
l0rdphi1
01-19-2004, 11:36 PM
Originally posted by Icheb
Is it possible to make DA retally a bit more than just once a day ?
Or will this damage the logs or something ? Sure.
To retally a single user:
echo 'action=tally&value={username}&type=user' >> /usr/local/directadmin/data/task.queue
To retally everyone:
echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
DirectAdmin Support
01-20-2004, 11:39 AM
Hello,
You can make the tally happen more often automatically by changing the /etc/cron.d/directadmin_cron file.
John
ProHS
02-04-2004, 04:03 AM
I keep getting an error when trying to excute it which is,
"su-2.05b# perl dausertool.pl
Not enough arguments for mkdir at dausertool.pl line 210, near ""$DA_DIR/data/users/$user/packages";"
Execution of dausertool.pl aborted due to compilation errors."
I was wondering how would i go about fixing this?
l0rdphi1
02-04-2004, 08:13 AM
Are you running freebsd? I probably need to convert some of the `` stuff over to pure Perl.
ProHS
02-04-2004, 08:23 AM
Yes i am :(. When do you think you will have a ported version for FreeBSD to use, i will even beta test it for you.
l0rdphi1
02-04-2004, 10:40 AM
I should have some time this evening to get it fixed (I'm EST GMT-5). I'll post here when I believe it to be working.
ProHS
02-04-2004, 10:44 AM
ok kool thanks, i am on the same time.
l0rdphi1
02-04-2004, 02:46 PM
When you get a chance, I think it may be fixed.
wget http://www.l0rdphi1.com/tools/dausertool_v1.2b1/dausertool.pl and follow the main post's instructions. If all goes well I'll update the main post with this new release.
ProHS
02-04-2004, 04:27 PM
It now works and thank you. I am sure the rest of the FreeBSD users are going to appreciate your work.
ProHS
02-04-2004, 09:22 PM
I was wondering if it possible to add a feature to da tools where you can move users to another reseller? That would be very useful for me. I would be happy to beta test it for you if you would like.
l0rdphi1
02-06-2004, 04:46 PM
1.2 is up. Has FBSD and chowning.. :)
ProHS
02-07-2004, 03:11 PM
what are the change in da tools 1.2 ?
l0rdphi1
02-07-2004, 05:57 PM
FBSD support & user owner setting (see the above post)
ProHS
02-07-2004, 06:40 PM
ok cool thanks
outpernet
05-27-2004, 02:27 PM
When i converted an user to a reseller, then when i try to create a user from that reseller DA says:
Unable to create a User
--------------------------------------------------------------------------------
You must first own an IP
But i assinged ok the server ip to that reseller ....
l0rdphi1
05-27-2004, 02:49 PM
Append your server IP to the reseller's ip.list file :)
outpernet
05-27-2004, 03:24 PM
but it has now the server ip.. like other resellers
l0rdphi1
05-27-2004, 06:13 PM
Isn't that what you want? You want your reseller to be able to create users on your server IP, no?
Maybe I don't understand your question.
Phi1. :)
outpernet
05-27-2004, 06:21 PM
first of all thankyou.
I wanted to say that is has the server ip, but i cant create an user so that message appears when i try. i will check more deep..
l0rdphi1
05-27-2004, 06:32 PM
Hmm. That is definitely odd. I'd check and verify all is as you suppose about the server IP.
Phi1.
motobrandt
06-08-2004, 08:39 PM
Phil,
I downloaded the script. I'm not clear as to the context that the script requires. Sorry for being noob.:rolleyes:
Is the script capable of moving a user from one reseller to another? If so could someone help me with context here?
Example :
User = user1
how to move user1 from reseller1 to reseller2?
thx
brandt
l0rdphi1
06-08-2004, 10:57 PM
Hello,
Try dausertool.pl -o reseller2 user1 :)
Phi1.
just a feature request, perhaps you can add this into your tool -- the ability to duplicate the packages of another reseller into a new reseller. it would make things even more easier for transferring things between resellers then. :)
anyway, this tool really helped me a lot. thanks a lot mate!
redeye
08-11-2004, 05:25 AM
Maybe possible to add the function: move user from 1 reseller to another?
l0rdphi1
08-11-2004, 06:53 AM
Redeye,
Isn't that what the above example does? It should change the owner of user1 to reseller2.
Phi1.
redeye
08-11-2004, 08:35 AM
Originally posted by l0rdphi1
Redeye,
Isn't that what the above example does? It should change the owner of user1 to reseller2.
Phi1.
OMG, your right, i'm sorry, didn't read it. It worked, kiss, kiss, kiss.
neorder
09-10-2004, 06:29 PM
when i change the user to another reseller, how can i set that user's IP address to the 2nd reseller's IP?
jmstacey
09-10-2004, 07:57 PM
When admin, show all users. Click on the user you want to modify. At the top of the screen there will be buttons, click the one callsed modfy 'username'.
There is a drop down box of available ip addresses there somewhere.
neorder
09-11-2004, 12:16 AM
i'm not assigning the user an IP, i want to change the user's ip from my main server IP to a reseller's main IP.
is it doable?
thanks
jmstacey
09-11-2004, 12:34 AM
If I am understanding you correctly, just like I said above.
Admin > Show All users > user > Modify user > IP Drop down box
The IP drop down box will contain a list of ALL available ip addresses. Just select the ip address that is the main ip address for the reseller you want to assign him to and save your changes.
When become the tool available for RH Fedora Core 2?
Marwen
03-01-2005, 01:11 AM
works perfect with fc2 .
i have use it without problems.
l0rdphi1
03-16-2005, 11:39 PM
Originally posted by GXX
Can I use this tool to do this?
User has 2 different accounts with username1 and username2, non-resellers.
He wants to merge username1 and username2, making username2 the single account.
Is this possible?
Unfortunately, no. This tool can not do that. You will have to manually edit his configuration files and copy his domains directory over.
Phil.
gate2vn
03-24-2005, 08:27 AM
I have upgraded an user to reseller without any problem, but change owner, it said cannot do with reseller or admin. So, I changed it back to user, set owner
perl dausertool.pl -o username username
then upgrade to reseller
perl dausertool.pl -r username
ok. But in DA, that user is still not in the user list. How can I fix this?
thanks
Originally posted by l0rdphi1
Unfortunately, no. This tool can not do that. You will have to manually edit his configuration files and copy his domains directory over.
Phil.
I need to do exactly the same thing.
I need to merge 4 seperate accounts under one user account.
Can you elaborate on exactly how to do this please?
Thanks
BWH
jmstacey
04-22-2005, 12:23 AM
In theory, probably lacking some details:
You would copy the contents of all other domains in their corresponding domains/ directory to the user you wanted to merge them to. (primary user)
Changing their permissions to match that of the pimary users.
Then you would add the domains to all the proper places in the primary user's DirectAdmin data files. The issue the command to DirectAdmin to rewrite all httpd.conf files. If you did everything right, it should pick up on the changes and add the necessary virtualhosts to the primary user reflecting the additional domains.
That is in a nutshell. Not to mention a similar process for email, MySQL, ........
motobrandt
05-04-2005, 03:29 PM
Hiya Phil,
I was just using this tool organizing users into resellers and all kinds of fun stuff.
THANKS! it's great!
But you posted earlier in the thread that changing the username would be easy. IS that possible with the current script? Or is that something else?
If it's possible please tell me how to do it.
Thanks again!
-brandt
rldev
05-06-2005, 10:51 AM
I wonder if DA can make this tool availe in the DA admin with a GUI. It would be very useful this way.
jmstacey
05-07-2005, 01:36 AM
I have actually been pondering creating a toolbox plugin with functions such as this that DirectAdmin is missing.
mass IP entry
mass domain entry
rename user
etc.
However, if DirectAdmin were to make these functions builtin, I would much rather prefer that.
Icheb
05-07-2005, 05:58 AM
One thing I'm still looking for is a way to move domain A from user B to user A, so far I've just deleted the content and recreated it, but I would really like to be able to move domains around between users. (Or am I the only one that has a few users who know eachother and trade domains with eachother ?)
Furthermore I'd also like to see DA include some kind of a toolbox for stuff like this into the admin panel.
rldev
05-08-2005, 08:56 AM
I have customers consoldate, change to resellers, etc all the time. This would be highly useful in the admin area.
4U-Web
06-14-2005, 02:25 PM
Originally posted by l0rdphi1
This is a tool that currently allows Users to be converted to Resellers, Resellers back to Users, and changing of any user's owner. See below for a full features list.
Current Version: v1.2
Last updated 2004-02-06 at 7:01 PM EST
Instructions: wget http://www.l0rdphi1.com/tools/dausertool.pl perl dausertool.pl Follow on-screen instructions.
Features: Convert Users to Resellers
Convert Resellers to Users
Change the owner of users
RH and FBSD support
Have fun! ;)
The url to the tool is not aivable anymore :mad: have's somebody on this forum a good url to the tool?
albatroz
06-14-2005, 02:27 PM
I can email it if you want...
4U-Web
06-14-2005, 02:32 PM
Please send it to info [at] 4u-web [dot] nl
Online is easier for me, but on e-mail is also well.
Thanks!
albatroz
06-14-2005, 04:08 PM
Download here...
http://alejandrolengua.info/da/
4U-Web
06-14-2005, 04:17 PM
Tnx!
EDIT: Other users that want to use the tool, without downloaden the zip file first, you can use the follow url:
http://www.4u-web.nl/datool/dausertool.pl
EDIT 2: I have upload the dausertool.pl, but as I do:
wget http://www.4u-web.nl/datool/dausertool.pl
in SSH, there comes the follow error:
--00:36:04-- http://www.4u-web.nl/datool/dausertool.pl
=> `dausertool.pl'
Resolving www.4u-web.nl... done.
Connecting to www.4u-web.nl[62.212.93.29]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
00:36:04 ERROR 403: Forbidden.
The CHMODD I have used is: 777
What can I do to resolve the problem?
4U-Web
06-15-2005, 08:30 AM
Can somebody help me with this problem?
nobaloney
06-15-2005, 05:58 PM
Unless you need it to be executed from that location, I'd suggest trying 644 instead of 777.
Jeff
4U-Web
06-16-2005, 02:07 AM
The same error comes as I have set the permission to 644:
--10:16:31-- http://www.4u-web.nl/datool/dausertool.pl
=> `dausertool.pl'
Resolving www.4u-web.nl... done.
Connecting to www.4u-web.nl[62.212.93.29]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
10:16:31 ERROR 403: Forbidden.
nobaloney
06-16-2005, 02:39 PM
Perhaps we can help you figure this out if you change to the directory (from your shell) and post the complete output of:
ls -al dausertool.pl
and then also the output of:
pwd
Jeff
4U-Web
06-16-2005, 02:48 PM
PWD:
s001# pwd
/usr/home/uweb/domains/4u-web.nl/public_html/datool
LS -AL DAUSERTOOL.PL:
s001# ls -al dausertool.pl
-rw-r--r-- 1 uweb apache 8634 Jun 15 00:29 dausertool.pl
nobaloney
06-16-2005, 05:09 PM
How about the results from:
/usr/home/uweb/domains/4u-web.nl/public_html/datool
Thanks.
Jeff
4U-Web
06-17-2005, 04:59 AM
What kind of results do you mean?
rldev
06-17-2005, 09:26 AM
I would willing to pay or donate to have this made as a plugin. I think this would be most useful. DA should really do it, but who knows what they are working on right now:) I doubt it is this.
jschurawlow
06-19-2005, 12:30 PM
I have to agree this would be quite useful to have in the admin area as a DA plugin definitely.
4U-Web
06-19-2005, 01:11 PM
Can somebodey help me with the converting now, I have a customer that want a reseller account, and he have's now a normal account.
jmstacey
06-19-2005, 03:52 PM
What kind of help do you need 4U-Web?
4U-Web
06-20-2005, 04:22 AM
As I post before, I have the dausertool.pl file, that have I upload to my server, but if I try to download on SSH, there comes the follow error:
--00:36:04-- http://www.4u-web.nl/datool/dausertool.pl
=> `dausertool.pl'
Resolving www.4u-web.nl... done.
Connecting to www.4u-web.nl[62.212.93.29]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
00:36:04 ERROR 403: Forbidden.
jmstacey
06-20-2005, 12:02 PM
Tell us again why your aren't downloading it from l0rdphi1's server?
wget http://www.l0rdphi1.com/tools/dausertool.pl
works just fine for me...
4U-Web
06-20-2005, 12:09 PM
Now the url works, but the time I had checked, the link wash down.
rotty100
08-12-2005, 10:02 AM
Hi ,
have someone a script like this
http://www.l0rdphi1.com/tools/dausertool.pl
for Admin to reseller ..??
Thanks
DA_user
09-26-2005, 05:37 AM
I got a strange problem!!!!
I just moved a user from one reseller to another. The script gave me the following message:
Owner of `testtest' has sucessfully been changed from `reseller1' to `reseller2'.
But when I as an admin check the "show all users", the user that I just moved still belongs to the original reseller? But when I login as reseller1 it does not own the user, and when I login as reseller2 it shows ut as the owner.
So the resellers user list shows the correct info, but not the admin list?
Can anyone help me?
Okay, I think maybe the problem may have been that the show all users site is cashed by DirectAdmin - so it do not update all the time, and therefor functions like this may be a bit slow?
Brian S
10-02-2005, 09:11 AM
Originally posted by outpernet
When i converted an user to a reseller, then when i try to create a user from that reseller DA says:
Unable to create a User
--------------------------------------------------------------------------------
You must first own an IP
I had the same problem. It seems the script adds a newline "\n" to the end of the IP in ip.list. This is enough to cause you to receive that message. Edit the ip.list file for the user, making sure there it nothing there but the IP, then save. You may not actually be able to see the newline, as was the case for me. But make sure there were no spaces or returns after the IP was enough to get it working for me.
Thanks,
Brian
nobaloney
12-18-2005, 08:11 PM
Phi1,
I've just run dausertool.pl to convert a user to a reseller.
Everything appears to have worked properly except for these error messages:
cp: cannot stat `/usr/local/directadmin/data/templates/custom/u_welcome.txt': No such file or directory
and
chown: failed to get attributes of `/usr/local/directadmin/data/users/lashin/u_w
elcome.txt
And of course the message is correct; the file doesn't exist.
Is that a problem?
Thanks.
Jeff
spirit
12-26-2005, 07:14 AM
Hi All,
I searched the forum for a way to refresh the user-list(s) in DA after use of the DA User Tool.
Background:
The migration of a user to reseller and changing the owner of an exist user works perfect with the tool provided.
Want to complete:
Only thing left now is the correct listing of users. This is not displayed correctly in the 'admin'mode. The listing in the 'new reseller' however is correct. Is this update of the admin-listing done automatically in DA after some time/refresh, or is there a way to force it? I allready tried a reboot of DA and server, didn't work out.
Thanks for helpfull replies in advance.
Kind Regards,
Spirit
Originally posted by DA_user
I got a strange problem!!!!
I just moved a user from one reseller to another. The script gave me the following message:
Owner of `testtest' has sucessfully been changed from `reseller1' to `reseller2'.
But when I as an admin check the "show all users", the user that I just moved still belongs to the original reseller? But when I login as reseller1 it does not own the user, and when I login as reseller2 it shows ut as the owner.
So the resellers user list shows the correct info, but not the admin list?
Can anyone help me?
Okay, I think maybe the problem may have been that the show all users site is cashed by DirectAdmin - so it do not update all the time, and therefor functions like this may be a bit slow?
jmstacey
12-26-2005, 04:16 PM
Sounds like the cache needs to be updated.
Running this command should do the trick:
echo "action=cache&value=showallusers" >> /usr/local/directadmin/data/task.queue
spirit
12-27-2005, 12:15 PM
Originally posted by jmstacey
Sounds like the cache needs to be updated.
Running this command should do the trick:
echo "action=cache&value=showallusers" >> /usr/local/directadmin/data/task.queue
Hi jmstacey,
This trick worked. List is updated. Many thanks
:)
Kind regards,
Spirit.
webquarry
02-12-2006, 02:25 PM
Hmm...
ok I grabbed this script from:
http://www.l0rdphi1.com/tools/dausertool.pl
(claims to be version 1.2)
and gather from posts on this thread that to move a useraccount from reseller1 to admin's control the command would be something like this:
dausertool.pl -o admin useraccount
right?
Questions is this:
When I dausertool.pl -h all I see is:
Usage: dausertool.pl [OPTION]... USER...
Modify DirectAdmin USER(s).
-r, --to-reseller convert USER to Reseller
-u, --to-user convert USER to User
-f, --force ignore nonexistent USER(s), never prompt
-h, -?, --help display this screen and exit
--version output version information and exit
No mention is made of the -o option. Before I screw somthing up, do I have the right version of the script? I've looked through the script and see no mention of a -o option anywhere in it....
woober
03-10-2006, 01:59 AM
After I converted a reseller to a user with this tool, all the users attached to this reseller dont show bandwith usage anymore :( Is it a way to get the BW usage back again? I tried to refresh the user accounts, but that didnt help either :(
Would appreciate any suggestion to solve this problem.
Thanks in advance.
jmstacey
03-10-2006, 05:19 PM
Did you assign these users to a different reseller before you made the reseller a user?
I haven't looked at how this script works, but I wouldn't think the quota files need to be modified in the user directories at all...
woober
03-11-2006, 03:28 AM
I found the problem, I just had to move the users to admin and back to the right account again. then it was reseted, now it works great. GOOD TOOL :)
Works perfect, good job man!
itmanvn
04-27-2006, 12:59 AM
Can anyone help me :(
DA 1.26.6
CentOS 4.3
After move a user to reseller with dausertool reseller CAN NOT create new user :(
Error return
User testa created
Details
Unix User created successfully
User's System Quotas set
User's data directory created successfully
Domains directory created successfully
Error Creating /home/testa/domains
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission
Unable to create directory /home/testa/domains/testa.com,
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission
Error creating /home/testa/domains/testa.com/public_html
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission
Error creating /home/testa/domains/testa.com/public_html/cgi-bin
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission
Error creating /home/testa/domains/testa.com/public_html/cgi-bin/.htaccess
Unable to open /home/testa/domains/testa.com/public_html/cgi-bin/.htaccess for writing
Error creating /home/testa/domains/testa.com/private_html
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission
Unable to create directory /home/testa/domains/testa.com/public_ftp,
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission
Unable to create directory /home/testa/domains/testa.com/public_ftp/incoming,
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission
Error Creating Domain
DA logs
2006:04:24-16:36:43: Auth:assValid: unable to get user_info for minhho
2006:04:24-17:34:51: Unable to create /home/minhson/domains/minhsong.com
2006:04:24-17:34:51: Unable to copy /usr/local/directadmin/data/templates/default to /home/minhson/domains/minhsong.com/public_html : <b>Parent directory does not allow write, or one of the directories didn't allow search (execution) permission</b><br>
Unable to create the directory /home/minhson/domains/minhsong.com/public_html<br>
2006:04:24-17:34:51: Error creating ./domains/minhsong.com/public_html -> /home/minhson/public_html : Permission denied
2006:04:24-17:46:41: userdel minhson : userdel: warning: /var/spool/mail/minhson not owned by minhson, not removing
userdel: /home/minhson not owned by minhson, not removing
2006:04:24-17:47:14: Unable to create /home/minhsong/domains/minhsong.com
2006:04:24-17:47:14: Unable to copy /usr/local/directadmin/data/templates/default to /home/minhsong/domains/minhsong.com/public_html : <b>Parent directory does not allow write, or one of the directories didn't allow search (execution) permission</b><br>
Unable to create the directory /home/minhsong/domains/minhsong.com/public_html<br>
2006:04:24-17:47:14: Error creating ./domains/minhsong.com/public_html -> /home/minhsong/public_html : Permission denied
2006:04:24-18:07:04: userdel minhsong : userdel: warning: /var/spool/mail/minhsong not owned by minhsong, not removing
userdel: /home/minhsong not owned by minhsong, not removing
2006:04:24-18:07:38: Unable to create /home/minhsong/domains/minhsong.com
2006:04:24-18:07:38: Unable to copy /usr/local/directadmin/data/templates/default to /home/minhsong/domains/minhsong.com/public_html : <b>Parent directory does not allow write, or one of the directories didn't allow search (execution) permission</b><br>
Unable to create the directory /home/minhsong/domains/minhsong.com/public_html<br>
2006:04:24-18:07:38: Error creating ./domains/minhsong.com/public_html -> /home/minhsong/public_html : Permission denied
2006:04:25-08:39:13: The username hasn't been set. Won't run the script without dropping privileges
2006:04:25-09:57:41: Unable to create /home/testa/domains/testa.com
2006:04:25-09:57:41: Unable to copy /usr/local/directadmin/data/templates/default to /home/testa/domains/testa.com/public_html : <b>Parent directory does not allow write, or one of the directories didn't allow search (execution) permission</b><br>
Unable to create the directory /home/testa/domains/testa.com/public_html<br>
2006:04:25-09:57:41: Error creating ./domains/testa.com/public_html -> /home/testa/public_html : Permission denied
2006:04:25-10:00:12: userdel minhsong : userdel: warning: /var/spool/mail/minhsong not owned by minhsong, not removing
userdel: /home/minhsong not owned by minhsong, not removing
2006:04:25-10:00:12: userdel testa : userdel: warning: /var/spool/mail/testa not owned by testa, not removing
userdel: /home/testa not owned by testa, not removing
pucky
09-19-2006, 11:39 AM
Originally posted by l0rdphi1
This is a tool that currently allows Users to be converted to Resellers, Resellers back to Users, and changing of any user's owner. See below for a full features list.
Current Version: v1.2
Last updated 2004-02-06 at 7:01 PM EST
Instructions: wget http://www.l0rdphi1.com/tools/dausertool.pl perl dausertool.pl Follow on-screen instructions.
Features: Convert Users to Resellers
Convert Resellers to Users
Change the owner of users
RH and FBSD support
Have fun! ;)
TICKET BUG: There is a bug in the script. Acutally, its not a bug. The ticket.conf does not get updated at all from USER -> RESELLER.
The USERS ticket.conf looks like this;
ON=yes
email=admin@efastservers.com
new=0
However, when converting USER -> RESELLER the ticket.conf should now look like this;
ON=yes
active=yes
email=resellername@resellerdomain.com
html=Follow <a href="http://www.domain.com/support">this link</a> for a 3rd party ticket system.
new=0
newticket=0
The code should be modified to convert /data/users/ticket.conf to the format of the RESELLER.
The end result is a Segmantation Fault if the reseller attempts to click on Manage Tickets.
So to manually fix it i did;
mv /path/data/user/ticket.conf ticket.conf.bad
vi /path/data/user/ticket.conf
paste
ON=yes
active=yes
email=resellername@resellerdomain.com
html=Follow <a href="http://www.domain.com/support">this link</a> for a 3rd party ticket system.
new=0
newticket=0
Save and exit.
No more segmentation fault
Thank you.
IM REALLY SUPRISED that DA Staff have not bothered to write a user to reseller script that would facilitate a user to reseller conversion. After all, they should know what needs to be done to do a successful converstion INSTEAD OF RELYING ON FORUM MEMBERS TO GET THE JOB DONE!
when this tool will be a standard feature in DA?
Changing users via this script is a bit annoying :(
cyberneticos
11-14-2006, 07:38 AM
It's even more annoying when you don't even have this tool.
But it would seem natural and logical to have this tool included in DA.
I would actually just like to comfirm the command syntax for moving 2 users into an existing Reseller account..
is This what I do..
10:36 AM[root@box /usr/home/ ]perl dausertool.pl -fr useraccount reselleraccount
or
10:36 AM[root@box /usr/home/ ]perl dausertool.pl -o reselleraccount useraccount1 useraccount2
Is the above correct as all I want to do is migrate 2 users to a existing reseller account with no hassel
Cheers
David C
07-03-2007, 08:18 PM
I've converted a user to a reseller and then changed his plan to a reseller plan.
Problem is, the reseller part is working okay. But on my admin account, when I view "Show all users". It shows that user as created by admin and with the old quota.
But on my "List resellers", it shows him on the new quota.
Anyway to update the part in "Show users" for consistency?
l0rdphi1
07-04-2007, 02:20 PM
I've converted a user to a reseller and then changed his plan to a reseller plan.
Problem is, the reseller part is working okay. But on my admin account, when I view "Show all users". It shows that user as created by admin and with the old quota.
But on my "List resellers", it shows him on the new quota.
Anyway to update the part in "Show users" for consistency?
"Show All Users" is cached and requires its cache cleared. See http://help.directadmin.com/item.php?id=118
Phil
Again thank you for another helpful tool l0rdphi1
congkai
12-06-2007, 08:32 PM
has this item been added into DA? or is it dead?
albatroz
03-11-2008, 09:45 AM
Is there a way to change the user a domain or set of domains belong to?
l0rdphi1
03-13-2008, 04:16 PM
Is there a way to change the user a domain or set of domains belong to?
Hi,
I don't think there is any tool to automatically do this, neither official nor 3rdparty. The problem is how data is stored. Domain files are stored inside the home directory of the user they belong to, so reassigning the owner becomes quite a task.
If you don't need to do this for a lot of domains and can re-add the DA settings (FTP accounts, email accounts, etc.), a shortcut method might be to create the domain on the user you wish to copy to, re-adding all DA-related settings. After that, copy the domain's public_html from the old user's home directory to the new user's home directory, and then fix ownership on the files. Still, that's a bit messy.
Phil
l0rdphi1
03-13-2008, 04:19 PM
has this item been added into DA? or is it dead?
This tool hasn't been updated in a long time, but it should still work fine. I still use it. :)
Cheers,
Phil
netmotiv8
03-22-2008, 06:46 AM
Does this tool allow me to move a domain from one user to another?
We previously used JTtoolbox to do this, but very annoyingly the JT Toolbox developer has gone AWOL and his domain has expired and license no longer works :mad:
Basically we have a Reseller who had set a domain under in his 'user' level and now needs to move it into his 'Reseller' level so that the domain owner can have his own control panel access.
We need a quick solution
Can anyone help?
hklcf
06-16-2008, 07:57 AM
thanks for share
cyberneticos
06-17-2008, 10:08 AM
JTbox is absolete.
nimafire
08-21-2010, 01:22 AM
can anyone update this plugin download link?
wget http://www.l0rdphi1.com/tools/dausertool.pl
--2010-08-21 22:06:22-- http://www.l0rdphi1.com/tools/dausertool.pl
Resolving www.l0rdphi1.com... 174.133.182.114
Connecting to www.l0rdphi1.com|174.133.182.114|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-08-21 22:06:22 ERROR 404: Not Found.
nobaloney
08-23-2010, 12:50 PM
User l0rdphi1 has a new website.
Click on his name in one of his posts (there's one a few posts above), there you'll find links to his DirectAdmin tool, and even an email address for him.
Jeff
nimafire
08-24-2010, 02:24 AM
Hello every one.
try this link:
wget http://kade.nu/da/dausertool_v1.1.pl
floyd
08-24-2010, 04:48 AM
I just read the first post and it appears that DirectAdmin includes the same functions now so there is no need to download something extra.
nimafire
08-24-2010, 12:53 PM
I just read the first post and it appears that DirectAdmin includes the same functions now so there is no need to download something extra.
How can we use this function ?
floyd
08-24-2010, 12:59 PM
Convert Users to Resellers
Convert Resellers to Users
Change the owner of users
These were included 3 years ago:
http://www.directadmin.com/forum/showthread.php?t=19773
If da user tool does more then by all means use it.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.