Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jul 2004
    Posts
    41

    Question How can I give a user ftp access to backup folder

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Quote Originally Posted by Infopro View Post
    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.
    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.

    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
    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.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  4. #4
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    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. #5
    Member
    Join Date
    Jul 2004
    Posts
    41

    Default

    Thanks for all the suggestions! I think I can get it from here.

    Patrick

Similar Threads & Tags
Similar threads

  1. Give new user FTP access..
    By lblanchardiii in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-22-2009, 04:22 PM
  2. How to give user FTP admin access only?
    By alistair.nelson in forum New User Questions
    Replies: 2
    Last Post: 10-05-2006, 02:05 AM
  3. Replies: 1
    Last Post: 11-17-2004, 06:10 PM
  4. Why can't we give resellers backup access?
    By Insyder in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-10-2004, 11:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube