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.

Copy Account from another server issue

Discussion in 'General Discussion' started by Willott, Sep 12, 2007.

  1. Willott

    Willott Registered

    Joined:
    Sep 11, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Having a slight issue when trying to copy accounts from other servers. When the option "Public Key" is selected and you try to use su as the root escalation method, the box for the root password pops up for a few seconds then disappears again. Has anyone else seen this happen or had this issue and solved it? Could do with resolving it or working round it soon as I have a fair few accounts to migrate.

    Regards

    Will
     
  2. koolcards

    koolcards Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Tampa, Fl
    select "Login as :" User (default)

    "Select authentication method:" Password

    "Choose a root escalation method:" su

    and it will work. You just have to input the user name and his password as well as the 'root' user's.
     
  3. Willott

    Willott Registered

    Joined:
    Sep 11, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Nope...

    The problem isn't it not authenticating etc, it's the fact that the password box for su escalation disappears (ie appears for about 1 second then disappears, looks like jscript is hiding it again). I've tried entering all info in boxes then clicking the su box, still no luck. Guessing it's not an issue you're seeing koolcards. It's worked before for me using public key, and cant see any reason why it shouldnt work :(
     
  4. koolcards

    koolcards Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Tampa, Fl
    It's all javascript executed on your PC and the password box is simply 'hidden' based on your selections.

    So with those 3 selections made:
    ---------------------
    select "Login as :" => User (default)

    "Select authentication method:" => Password

    "Choose a root escalation method:" => su
    ---------------------
    Your browser window didn't show the root password box?
    Might need to mention which WHM/cPanel version, OS, etc
     
  5. Willott

    Willott Registered

    Joined:
    Sep 11, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    OK, specs following... Not using password authentication, using Key (with key password), as we like to keep things nice and secure. Is there any reason why on earth they'd only allow use of password (why keep the key option there if they'd done that)?

    WHM 11.2.0 running on Centos Enterprise 4.5 i686
    Problems seen in both Firefox and IE7 on Windows XP machines.
     
  6. koolcards

    koolcards Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Tampa, Fl
    Oh, sorry. You said "Could do with resolving it or working round it soon as I have a fair few accounts to migrate." I was trying to tell you how it would work. ;)

    Yes, the "root" password dissappears when you make the selections the way you had it configured and, yes, that's the way the javascript is written. Why, I couldn't tell you but there is a branching error where I think it's missing another set of tests :

    this is where you hit, failing the first set of tests, and the "else" shuts down the root password entry:

    /scripts2/copymanyaccount
    Code:
    if (esc == "su" || (authtype == "password" && auth == "root")) {
    		// showblock('passinput');
    		showblock('rootpassinput');
    	} else {
    		//sudo
    		showblock('passinput');
    		hideblock('rootpassinput');
    	}
     
    #6 koolcards, Sep 12, 2007
    Last edited: Sep 12, 2007
Loading...

Share This Page