Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a directory called /backups where all backups are stored for all users with a dated folder.

Now, I want to make one FTP user so that when he connects via ftp, he goes straight into that folder to download those backups. How can I do that?

In whm/cpanel i have pure-ftpd installed.

I don't want to make a account for that user like i have website for each user but something by which that user can download those files.

share|improve this question

closed as off-topic by HopelessN00b, Ward, RobM, Jenny D, kasperd Feb 22 at 14:05

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Create a virtual user account on pure-ftpd.

pure-pw useradd USERNAME -u ftpuser -d /backups -m
  • Note that ftpuser is the user profile that the FTP process will run as once the user logs in. Essentially it is a "skeleton" profile for the user account. This makes it easier to configure permissions based on real groups which apply to your virtual users.
share|improve this answer

If you're going to make a user outside of cPanel's control, make sure that the UID and GID are outside of the range that cPanel uses (should be able to determine that range pretty easily by looking at /etc/passwd and /etc/group). Have a read of man useradd to find out how to create user accounts.

Are you trying to set this up so that you can copy the backups to a remote location? If so, cPanel already has functionality to write the backups to a remote FTP server.

share|improve this answer
Actually i am making backups using shell scripts not cpanel backups. I want to download the backups to my home company local server once a week so thats if i have FTP account i can download the backups easily – John Dec 22 '09 at 0:45