PDA

View Full Version : Display order for Welcome message


LiSTiC
07-06-2007, 11:23 PM
Tricky topic, I know :)

I was wondering if it was possible to change the order for when the Welcome message is displayed, now it looks like this:


[R] 331 Password required for *user*.
[R] PASS (hidden)
[R] 230-"Welcome msg".
[R] 230 User *user* logged in.
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Extensions supported:
[R] AUTH TLS
[R] AUTH SSL
[R] PROT
[R] PBSZ
[R] SSCN
[R] CPSV
[R] SIZE
[R] LIST -1aAdlRTs
[R] STAT -1aAdlT
[R] MDTM
[R] MDTM YYYYMMDDHHMMSS filename
[R] 211 END
[R] PWD
[R] 257 "/" is current directory.
[R] TYPE A
[R] 200 Type set to A.
[R] PROT P
[R] 200 Protection set to: Private.
[R] PASV
[R] 227 Entering Passive Mode (*)
[R] Opening data connection IP: *.*.*.* PORT: *
[R] LIST -al
[R] Connected. Negotiating SSL session..
[R] 150 Opening ASCII mode data connection for directory listing.
[R] SSL negotiation successful...
[R] SSL encrypted session using cipher RC4-MD5 (128 bits)
[R] 226-[UL: 0.0GB] [DL: 0.0GB] [Speed: 0.0KB/s] [Free: 481683MB]
[R] 226 [Section: Default] [Credits: 0.0MB] [Ratio: Unlimited]
[R] List Complete: 1 KB in 2,45 seconds (0,5 KB/s)

So that the welcome message would be shown later, so users don't have to scroll up to see that they're welcome...

Its not that big a problem, but if anyone can help I would appreciate it :)

Yil
07-07-2007, 11:39 AM
If you look closely the welcome message comes immediately after a successful password entry. The rest of the stuff is in response to client commands (i.e. syst, feat, pwd, ...).

There just really isn't a better place to put it since there is no requirement clients send any of those commands... The best suggestion I have is to use a bunch of blank lines, or some ascii art to make the welcome message hard to miss as it scrolls past :)

LiSTiC
07-07-2007, 08:08 PM
Okay, I'll try with some spaces, Thanks Yil :)

tuff
07-09-2007, 10:32 AM
a simple POST FEAT script could do this

LiSTiC
07-09-2007, 02:23 PM
When you say simple, is it for a scripter or a normal user of ioFTPD (such as myself :) )?

tuff
07-10-2007, 06:45 AM
well, text files are easy to display in io, simply add a POST FEAT event to your ioftpd.ini and let it display the welcome text, rename the original welcome text to something else so io wont find it, therefore it wont display it after pass :)

remember though, FEAT is a client request, it aint default by all means, so anyone that doesnt send a FEAT command at login, wont see your new welcome.

LiSTiC
07-10-2007, 09:30 PM
Alright thanks I will give it a try :)