FTP to /dev/null
Michael ODonnell
michael.odonnell at comcast.net
Wed Jan 18 12:15:00 EST 2006
Anybody know how to rig an RHAT box's vsftpd such that
/dev/null can be specified as the destination during an
upload? In other words, a client machine would push bits
over the wire to this vsftpd which would promptly throw
them away. This is for a network bandwidth/throughput
test (we're qualifying a machine for a customer app and
yes, we *have* to use FTP) and the vsftpd is apparently
refusing to accept /dev/null (or local instances created
in the ftpd's subdirectory with mknod, or links to same)
as the destination for the inbound bits. The vsftpd is
apparently unhappy because the destination already exists
and the open() is being done O_CREAT|O_EXCL.
I know I've done this before in a past life but I can't
remember my hack. My fallback is to use the FTP "append"
command but my previous hack allowed use of "send" and
"put" and seemed more elegant, so I hope to reproduce it...
More information about the gnhlug-discuss
mailing list