why does Cpanel allow restores of taken usernames?

rastoma

Well-Known Member
Aug 27, 2001
158
0
316
If you try to do a WHM > WHM transfer and the username is in use it fails.

If you restore a package from the command line it just happily overwrites a user's account if the username is already in use.

Yes, it flashes OUCH USERNAME ALREADY TAKEN but you have to be very careful to see and on a fast server it starts to extract by the time you can cancel the restore.

This has been this way since day one, why is this still allowed?



http://bugzilla.cpanel.net/show_bug.cgi?id=4467
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
It's allowed so that you can restore an existing account, which can be a vital feature. It might be nice if it asks if you really want to restore over an existing account and require input, or provide a switch so that it just does it anyway.
 

zigzam

Well-Known Member
May 9, 2005
206
0
166
Yes, I wish it would at least ask for confirmation. I have overwritten accounts in the past on accident.
 

rastoma

Well-Known Member
Aug 27, 2001
158
0
316
good point about the restoration...

yes, a confirmation is definately the better choice then.

should be easy to check the user and prompt: username is in use, continue with restore?