| View previous topic :: View next topic |
| Author |
Message |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Thu Feb 05, 2009 8:21 am Post subject: uploading information to another server without a password |
|
|
Hi,
I'm looking for a way to upload a file (or the data stored inside) to another server without using ftp.
The idea is that i run the server and user can upload their channel-information there. Of course i do not want to give away my ftp-pw to everyone.
Is there a way?
Thx,
tueb _________________ #Quiz.de @ irc.GameSurge.net
JavaChat |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Thu Feb 05, 2009 3:04 pm Post subject: |
|
|
Perhaps you could maintain whatever database of information you require your users to contribute to on the bot itself, with Tcl binds/commands to facilitate additions to and deletions from the database.
You could then use other binds/commands, perhaps available to the bot owner only, to automatically transfer information to another server by invoking the shell's command line ftp client (using Tcl exec command) to upload. The host/user/pass for the other server would be written into the script, hence only visible to persons with access to your shell (and therefore the scripts).
But, to answer your question, I don't know another way of transferring files between servers without using ftp. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Feb 05, 2009 5:21 pm Post subject: |
|
|
From reading your post, I make the assumption that you've got root access to your server (or equivalent).
In such case, it would be a "mere" matter of installing server software for whatever transfer protocol you choose to use.
Another approach could be to allow anonymous ftp, or grant each user their own ftp account.
Other approaches could be a simple cgi-script to handle a file upload from your favourite browser. This could fairly easily be supported within your eggdrop through some creative scripting.
Yet another way could be using public key authentication with ssh/scp/sftp, although you probably would like to grant each user their own account here aswell. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|