Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Chandler, AZ
    Posts
    214
    cPanel/Enkompass Access Level

    Root Administrator

    Default how do you upload files to the server using root access

    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. #2
    Member
    Join Date
    Apr 2003
    Location
    New Jersey, USA
    Posts
    414

    Default

    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.
    eMax Hosting, LLC - Providing Reliable Hosting Services for the past 3 years
    ¨€ cPanel, MySQL, 24/7 Support, Money Back Guarantee, *Free Website Builder*,
    ¨€ Shared Hosting, Reseller Hosting, Dedicated Management, Site Monitoring Services, 97% Client Rating
    ¨€ Have a Sales Questions? Call us toll free at 1-800-770-eMax!

  3. #3
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Chandler, AZ
    Posts
    214
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #5
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Chandler, AZ
    Posts
    214
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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!
    http://sourceforge.net/projects/winscp/
    WinSCP is a SFTP and SCP client for Windows using SSH. Its main function is secure copying of files between a local and a remote computer.
    Last edited by ryno267; 11-23-2004 at 12:26 PM.

  6. #6
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #7
    Member
    Join Date
    Jun 2003
    Posts
    280

    Default

    I just upload to a normal Cpanel FTP account and then just "mv /home/xxxx/dropspace/* /where/ever"

  8. #8
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ryno267
    What about WinSCP? its free!
    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. #9
    cPanel Partner NOC cPanel Partner NOC Badge gorilla's Avatar
    Join Date
    Feb 2004
    Location
    Sydney / Australia
    Posts
    736

    Default

    Quote Originally Posted by ryno267
    What about WinSCP? its free!
    http://sourceforge.net/projects/winscp/
    I usually use FileZilla and its great and uses putty aswell
    http://filezilla.sourceforge.net/

  10. #10
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Chandler, AZ
    Posts
    214
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    thanks gorilla... i'm going to check that out for that purpose...

Similar Threads & Tags
Similar threads

  1. Can't access server with root via sftp...
    By bjorn@element in forum New User Questions
    Replies: 2
    Last Post: 08-08-2011, 05:48 PM
  2. Access root to a server in cluster -> access to dns ?
    By altomarketing2 in forum Security
    Replies: 1
    Last Post: 03-15-2011, 11:09 AM
  3. How to prevent root from access my files ?
    By 5416339 in forum New User Questions
    Replies: 4
    Last Post: 01-24-2011, 02:50 AM
  4. Upload files on server throught URL field (suggestion)
    By stardev in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 12-03-2009, 08:47 PM
  5. upload files to root directory?
    By baidarkabob in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 09-11-2003, 01:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube