LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Make FTP user and specify directory outside home (https://www.linuxquestions.org/questions/linux-newbie-8/make-ftp-user-and-specify-directory-outside-home-756107/)

mirror51 09-18-2009 12:49 AM

Make FTP user and specify directory outside home
 
I have Pure FTP D in VPS.

MY backups are being done in
Quote:

/backups
folder which is outside home directory.


Is there any way to download those backups through FTP because currently i have to move those backups to any directory in
Quote:

/home/user
and then download it

This is time consuming

lutusp 09-18-2009 06:10 AM

Quote:

Originally Posted by mirror51 (Post 3688102)
I have Pure FTP D in VPS.

MY backups are being done in folder which is outside home directory.


Is there any way to download those backups through FTP because currently i have to move those backups to any directory in

and then download it

This is time consuming

Not as time-consuming as trying to decode your post. Please express your question this way:

1. Here is what I hoped for: ________________________________

2. This is what I got instead: ______________________________

3. Here is how (1) differs from (2): ________________________

And please use terms like "backup", "upload" and "download" in consistent ways.

Wim Sturkenboom 09-18-2009 07:05 AM

I suppose a symbolic link in your home directory to the backup directory will do. How do you create the backup? tar, copy, ... ?

If the backup is of the home directory, you might have the risk that it ends in an endless loop (not sure about that); depending on the way of backup that can be prevented.

unev_21 09-19-2009 02:14 AM

Check out
http://www.linuxhomenetworking.com/w...P_Server_Setup

Hi Wim Sturkenboom,
I guess a more precise way is to change FTP home directory to what ever mirror51 wants.

Feel free to disagree..

mirror51 09-21-2009 12:19 AM

Actually i am using Cpanel and WHM for making FTP users. IN Cpanel there is option to make FTP users but only inside home directory.

But if there is any way by which i can chnage users ftp directory to something esle using Shell , it will be very thank ful to you.


I am not creating users using shell so i don;t know its commands

Can anyone guide me how to chnage ftp home directory from shell


I found this from other site

http://www.ducea.com/2006/07/27/allo...ectory-chroot/


Quote:

mkdir /home/ftp_user/www_dev
mount --bind /var/www/dev/ /home/ftp_user/www_dev
After this the ftp user will be able to see the needed files in his home directory and use them in his ftp client as if they were local files.


Just one questions if i use above solution , i want to ask for that if i am making backups , will that folders is also included , while doing backups , othwise i will be in a endless loop


All times are GMT -5. The time now is 10:27 PM.