I need to write a file to FileZilla FTP server hosted in Windows operating system using absolute path. The path in which I need to write the file is C:\Test\Batch_File\count\. The home or root path is set to C:\Test\Batch_File When I use relative path like ftp:// the FTP transfer works fine. I want the user to connect using the absolute path, something similar to the one like ftp://. I know using the URL as ftp:// is the best way but I just want to experiment this. The client from which I am connecting is IBM DataPower appliance.
1 Answer
There's no magical way to simply configure FileZilla FTP server to allow an access to a whole system. For a good reason, you actually do not want to do this in general. Particularly giving even read-only access to C: (system) drive is a huge security risk.
You can configure it drive-per-drive though.
- First add a fake root/home folder and point it to some empty physical path (say
C:\empty) and set the folder read-only. - Then add virtual path
/X:for eachX:drive you want to make accessible (though using simple/Xmight be better, some FTP clients may not like the colon).
And now you can use an FTP path like the /X/foo/bar (or the URL ftp://) to access the X:\foo\bar.