LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2009, 12:49 AM   #1
mirror51
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Rep: Reputation: 0
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

Last edited by mirror51; 09-18-2009 at 12:50 AM.
 
Old 09-18-2009, 06:10 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by mirror51 View Post
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.
 
Old 09-18-2009, 07:05 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 09-19-2009, 02:14 AM   #4
unev_21
Member
 
Registered: Mar 2009
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 16
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..
 
Old 09-21-2009, 12:19 AM   #5
mirror51
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
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

Last edited by mirror51; 09-21-2009 at 12:25 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot change directory from ftp user shipon_97 Linux - Newbie 1 08-24-2009 02:33 AM
restrict a FTP user from changing directory qrshat Solaris / OpenSolaris 5 02-11-2009 04:02 AM
Linking a directory for ftp user riemann_noodles Slackware 3 11-14-2006 11:15 PM
NEED HELP WITH FTP user account and directory setup aikym1 Linux - Security 1 10-06-2004 06:33 AM
How can I limit my ftp user to just one directory mtn356 Linux - Software 1 10-28-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration