Connect to very root folder of VPS

Discussion in 'Site & Server Administration' started by Matt18, Nov 5, 2011.

  1. #1
    Hi

    I am very new in server administration. I bought a VPS and I am running WHM/Cpanel on it. I managed to set up an account and everything works fine, except that I don't know how to connect to the root of the server. Not the top directory of that account but top directory of server.

    That account is in /home/username, but my WHM is making backups to /bcfolder , is there a way to connect to this folder to view it as I view /home/username via ftp client?

    Thank you for all your help!
     
    Matt18, Nov 5, 2011 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    do you have ssh access

    if so you can create a link to that folder in /home/username

    Regards

    Alex
     
    kmap, Nov 5, 2011 IP
  3. Matt18

    Matt18 Guest

    Messages:
    591
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think I have ssh access but I don't know how to use it. Can you help me out? Maybe a link to good source of information? Thanks a lot!
     
    Matt18, Nov 5, 2011 IP
  4. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #4
    step by step

    1. download putty
    2. login with "root"
    3. create a folder in home/username
    4. link the /bcfolder to new folder
     
    kmap, Nov 5, 2011 IP
  5. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #5
    Download Putty software.
    Open it and enter your IP address in hostname, user as root and the WHM password. You will be logged in as root user.
    The backup folder by default is /backup/cpbackup, in your case it could be different as stated in WHM -> Backups -> Configure Backup.
    The commands to go to the directory and list the files are:
    cd /backup/cpbackup/daily
    ls -la
     
    madaboutlinux, Nov 5, 2011 IP
  6. AnthonyG

    AnthonyG Well-Known Member

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #6
    There are numerous ways to get your desired results.

    The easiest way for you, as you have no ssh experience, simply use filezilla over SFTP, which you can set in the fz client, simply login as root, mv to the desired folder, then down load the desired file.

    OR

    You can simply change the backup folder that whm is using, IF the backup script is actually setup in whm & its NOT a custom backup script.
     
    AnthonyG, Nov 5, 2011 IP
  7. Matt18

    Matt18 Guest

    Messages:
    591
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thank you all. I just can't manage to connect with root via ssh.

    Access denied

    kmap helped me via TeamViewer but we couldn't find a problem. Is there any special way why I couldn't loging?

    Thank you all for your help!
     
    Matt18, Nov 5, 2011 IP
  8. AnthonyG

    AnthonyG Well-Known Member

    Messages:
    114
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #8
    Which WHM addons do you have, APF? (bottom left of the main WHM panel.)

    If so whitelist your IP in APF
     
    AnthonyG, Nov 5, 2011 IP
  9. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #9
    he is able to connect as normal user

    when he types

    su
    it says permission denied

    Regards

    Alex
     
    kmap, Nov 5, 2011 IP
  10. Matt18

    Matt18 Guest

    Messages:
    591
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I managed to connect! I managed to connect with one of my accounts. And I am able to navigate too all directories inside server. I even managed to get a list of all files in my backups folder with ls command.

    But I still can't manage to see this in ftp view. I tried with filezilla over sftp as you Anthony suggested (thank you for your help!) but connection does not establish.

    I also tried another thing that kmap suggested. Creating a link and then clicking on it in FTP.

    I tried by going to the root and then typing:

    ln -s /bcfolder /home/username/linkbackup
    Code (markup):
    Where linkbackup was a folder I created before.

    Then I tried going to /home/username/ and typing:

    ln -s linkbackup ../../bcfolder
    Code (markup):
    None of it worked. In both cases when opening the folder in ftp I just got linkbackup folder opened instead of bcfolder in the root. Obviously I have no idea what I'm doing. Please help :( Thank you in advance!
     
    Matt18, Nov 5, 2011 IP
  11. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #11
    ln -s /backup /home/username/new

    it shd work

    Regards

    Alex
     
    kmap, Nov 5, 2011 IP
  12. Matt18

    Matt18 Guest

    Messages:
    591
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I managed to solve that problem! Of course with many great pointers from you and uncle google. For anyone else who might have a problem not being able to go into "super user" mode

    Go to WHM >> Security Center >> Manage Wheel Group Users

    Now add that user to the Wheel. Then you will be able to type su.

    However I still have a problem with link.

    That doesn't work. It does create some sort of link in the user folder (I see this arrow next to icon in FTP). But all i get is directory "new" opened inside /home/username/new, when I click on it via ftp.

    Thank you for your time everyone. I really appriciate it.
     
    Matt18, Nov 5, 2011 IP
  13. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #13
    solved

    chmod 755 /backup

    and it worked

    now it show the folder in /home/username

    Regards

    Alex
     
    kmap, Nov 5, 2011 IP
  14. Matt18

    Matt18 Guest

    Messages:
    591
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Indeed. Thank you very much everyone once again! Especially Alex!
     
    Matt18, Nov 5, 2011 IP