The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

why does Cpanel allow restores of taken usernames?

Discussion in 'General Discussion' started by rastoma, Aug 9, 2006.

  1. rastoma

    rastoma Well-Known Member

    Joined:
    Aug 27, 2001
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    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
     
    #1 rastoma, Aug 9, 2006
    Last edited: Aug 9, 2006
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  3. zigzam

    zigzam Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    206
    Likes Received:
    0
    Trophy Points:
    16
    Yes, I wish it would at least ask for confirmation. I have overwritten accounts in the past on accident.
     
  4. rastoma

    rastoma Well-Known Member

    Joined:
    Aug 27, 2001
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
Loading...

Share This Page