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.

how do you upload files to the server using root access

Discussion in 'General Discussion' started by ryno267, Nov 23, 2004.

  1. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    As with the /backend.php script in the other thread, and others to where you need to upload files/images/ etc to the server using root access - how do you guys do that?

    I've been using putty for all the config and text stuff, but I'm wanting to try out that backup.php in the /usr/local/cpanel/whostmgr/docroot/ directory, and i'm also wanting to make a new cpanel theme and seem to need to be able to upload images and stuff, yet I just don't know how to do that.

    Like what do you guys use to do that kinda stuff? Any trade secrets that I haven't learned? Thanks much guys...
     
  2. XPerties

    XPerties Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    401
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New Jersey, USA
    Because I disable all my servers with root login and force admin right to su - first I haven't found any FTP app that supports su - to root.

    What I do is just upload the files I need to a an account ont he server and mv filename to directory I want it in.
     
  3. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    in putty.. i have to log in with
    "main-account-username"
    "main-account-password"

    THEN i can "su -"
    then "root password"


    So.. I've tried with ws_ftp but I don't know how to get in that way. I suppose I could do what you do and upload to our main dir then mv folder over... eh... just sounds like the hard way... lol... thanks for your insight though...

    anybody else?
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You can enable an alternate port and run a second ssh daemon that only accepts connections via public key authetication. Then using an app like, Private Shell or others, you can sftp to/from root.
     
  5. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    holy crap... that sounds awesome... but... I have no frickin idea what you just said... lol...

    uh... I'm not sure how to create a new port and do all that...


    What about WinSCP? its free! :rolleyes:
    http://sourceforge.net/projects/winscp/
     
    #5 ryno267, Nov 23, 2004
    Last edited: Nov 23, 2004
  6. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Well credit goes to Chirpy on the forum for helping me sort this out. Kind of busy at the moment due to upcoming holidays but can post the help he gave me if you have some time. You might want to research how to generate key authentication if you are using putty or check some of the other non free ssh client options. Have particularly liked Private Shell which Chirpy recommended. http://www.privateshell.com/
     
  7. richy

    richy Well-Known Member

    Joined:
    Jun 30, 2003
    Messages:
    276
    Likes Received:
    1
    Trophy Points:
    16
    I just upload to a normal Cpanel FTP account and then just "mv /home/xxxx/dropspace/* /where/ever"
     
    davellan likes this.
  8. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    True, but you won't be able to use the gui sftp functions to root accessible directories. Does have built in putty support though. The extra denaro for a client like Private Shell was well worth it for us. Just got tired of moving/backing up multiple files from the command line.
     
  9. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
  10. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    thanks gorilla... i'm going to check that out for that purpose...
     
Loading...

Share This Page