FTP to /dev/null

Ken D'Ambrosio ken at jots.org
Wed Jan 18 13:18:01 EST 2006


I seem to recall having made a FIFO for that in the past, with it
pointing to /dev/null.  Give it a try...

Michael ODonnell wrote:

>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...
>
> 
>_______________________________________________
>gnhlug-discuss mailing list
>gnhlug-discuss at mail.gnhlug.org
>http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>  
>




More information about the gnhlug-discuss mailing list