Hot answers tagged ftp
mount ftp resource locally with: curlftpfs [user@]host:[dir] mountpoint [options] and do whatever you like like a local filesystem
First of all it is indeed a bad idea to use the homedirectory of root for other purposes. Consider a dedicated home directory for the new user, root is always able to access it. Are you indeed looking for setting the homedirectory of the ftp user to the homedirectory of the superuser root or are you looking for a way to safely specify a FTP root (jailed or ...
An approach that's often convenient is to mount the files, and then access them like you would access ordinary local files. For a server that you access through FTP, you can use CurlFtpFS. mkdir theserver curlftpfs theserver.example.com theserver You'll need to pass the username and password to curlftpfs, either on the command line (which is unsafe as ...
If you are OK with running periodically a script, you can utilize wget -N, see: http://superuser.com/questions/283481/how-do-i-properly-set-wget-to-download-only-new-files You can create a script like: cd /var/download_here/ wget -N ftp://example.com/new.txt --ftp-user="my_user" --ftp-password="my_password" And add crontab entry like: */5 * * * * ...
Only top voted, non community-wiki answers of a minimum length are eligible