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 can I give a user ftp access to backup folder

Discussion in 'General Discussion' started by Biotron2000, Oct 31, 2006.

  1. Biotron2000

    Biotron2000 Active Member

    Joined:
    Jul 20, 2004
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    I want to be able to connect to my server via FTP to copy backup files to another server. How can I give a non-root user permission to access my backup folder (/backup, in this case)?

    Thank you,
    Patrick
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    When you create a FTP user acount in cPanel, use the name backup. It will create the directory for you called backup. Not a great name to use BTW. Since it's in public_html you might want to add an index.html to the directory too.
     
  3. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    I think they mean /backup not /home/username/public_html/backup but /backup probably a mounted point on an extra drive or just a folder off root named /backup.

    One of the problems I see is that ownership for all the backups will be root under cPanel Backups, like /backup/cpbackup/weekly. Is this for all or one? One would not be hard to do. If you want to copy all backups to a remote server I would use rsync.
     
  4. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    North Carolina
    In instances where I've wanted to give an FTP user access to a folder above the /home/AccountName/public_html directory, here's what I've done ...

    1) Create a new FTP Account via the FTP Manager

    2) Initially accept the default directory the system wants to create (which is under /public_html)

    3) SSH into the server and edit the file /etc/proftpd/accountname. The files are stored under /etc/proftpd even if you are using pure-ftpd on the server (at least on my system).

    4) In this file you'll find an entry for the new FTP Account you created in #1. Carefully edit the directory and point it to where you want.

    As rhenderson indicated you could run into permission problems depending on your objectives. Either way, knowing how to create an FTP account / user outside of the www directory may be useful down the road.
     
  5. Biotron2000

    Biotron2000 Active Member

    Joined:
    Jul 20, 2004
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for all the suggestions! I think I can get it from here.

    Patrick :)
     
Loading...

Share This Page