Browse All Articles > How to add NTFS volume with NTFS-3G and use it for VSFTPD anonymous upload
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.
IT can be done and here's how to get it working:
In this example, I have an external NTFS Gigabyte drive that I called "Store01". This volume contains a directory called "/ftp". Anonymous ftp clients should be able to upload to what is seen thru FTP as "/ftp/pub", and I want these files to actually show up in /ftp on my external NTFS drive.
The first requirement is that vsftpd wants the anonymous root directory to be owned by ftp:ftp
You'll need to find the right id so look in the user file to find the id for ftp. In this case:
Note that it is going to belong to user 14, which is ftp on my system, and group 50, which is ftp on my system. VSFTPD requires that anonymous upload directories to belong to ftp:ftp
Now define a mount point you want to use as your ftp anonymous root:
Notice /var/ftp is owned by root:root, and therefore cannot be written to by vsftpd. This is a requirement of vsftpd for a ROOT anonymous directory, that the anonymous root directory not be writable. So, /var/ftp is what I'm going to use as the anonymous root directory.
But /var/ftp/pub is writeable by vsftpd. It appears to anonymous users as a "pub" directory on the FTP site where they can write files.
So add this line to /etc/fstab, which will point /var/ftp/pub (the anonymous writable directory) to the /ftp folder on my NTFS volume:
I'm a Page Editor for EE and I'll be helping you get your article published. I'll look through it shortly. Just wanted to let you know it's in the process.
Comments (2)
Commented:
I'm a Page Editor for EE and I'll be helping you get your article published. I'll look through it shortly. Just wanted to let you know it's in the process.
And sorry for the delay.
Best,
MH
Author
Commented: