This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

uploading information to another server without a password

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
t
tueb
Halfop
Posts: 76
Joined: Thu Oct 04, 2007 6:09 am
Location: #quiz.de @ irc.gamesurge.net
Contact:

uploading information to another server without a password

Post by tueb »

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
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

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.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
Post Reply