Owen Synge
Is it possible to give users additional commands when they log on to my FTP server. I saw a directory called /usr/local/ftp/bin which contained ls and compress but could not get compress to run or a little hello world binary.
It is not (and should not be for security reasons) possible to send arbitrary shell commands to an FTP server. The FTP server recognizes FTP commands as specified in RFC 959 (these are neither shell commands nor are they identical with the commands recognized by an FTP client's command line interface) and it *may* use other programs (like /bin/ls) when processing the requests. So you would have to implement additional commands in your FTP deamon, possibly by offering site specific extensions via the FTP "SITE" command. Simply putting binaries to ~ftp/bin gives you nothing. Eilert -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Eilert Brinkmann -- Universitaet Bremen -- FB 3, Informatik eilert@informatik.uni-bremen.de - eilert@tzi.org - eilert@linuxfreak.com http://www.informatik.uni-bremen.de/~eilert/ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Thnakyou very much, good to hear this is not an option. Today our client told us that we cant use TCP/IP anyway. Thanks again Owen Eilert Brinkmann wrote:
Owen Synge
wrote: Is it possible to give users additional commands when they log on to my FTP server. I saw a directory called /usr/local/ftp/bin which contained ls and compress but could not get compress to run or a little hello world binary.
It is not (and should not be for security reasons) possible to send arbitrary shell commands to an FTP server. The FTP server recognizes FTP commands as specified in RFC 959 (these are neither shell commands nor are they identical with the commands recognized by an FTP client's command line interface) and it *may* use other programs (like /bin/ls) when processing the requests. So you would have to implement additional commands in your FTP deamon, possibly by offering site specific extensions via the FTP "SITE" command. Simply putting binaries to ~ftp/bin gives you nothing.
Eilert -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Eilert Brinkmann -- Universitaet Bremen -- FB 3, Informatik eilert@informatik.uni-bremen.de - eilert@tzi.org - eilert@linuxfreak.com http://www.informatik.uni-bremen.de/~eilert/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
eilert@informatik.uni-bremen.de
-
owen.synge@kewill.com