PDA

View Full Version : Site close problem


rolan
08-29-2007, 11:57 PM
site close reason.

but all of man can login into site, not show site is closed.

use ioFTPD 6.2.1 and nxTools v1.0.6

neoxed
08-30-2007, 09:28 PM
Tested and working fine here on both 5.8.5 and 6.2.1.

Make sure you have the pre-command event for PASS in ioFTPD.ini:

[FTP_Pre-Command_Events]
pass = TCL ..\scripts\nxTools\nxClose.tcl LOGIN

Also make sure the user(s) you're testing with are not exempt in nxTools.cfg:

#### Site Close ############################################
#
# - Kick non-exempted users when the site is closed.
# - Allows certain users, groups, or flags to login when site is closed.
#
set close(KickOnClose) True
set close(UserNames) "neoxed sitebot"
set close(GroupNames) "STAFF Nukers"
set close(Flags) "M1L"

rolan
08-30-2007, 11:29 PM
ohh,yes, its works, i check out the line in the FTP_Pre-Command_Events, sorry for that.

rolan
08-31-2007, 10:55 AM
so many these error:

08-31-2007 20:09:29 "..\scripts\nxTools\nxClose.tcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
can't read "user": no such variable
while executing
"ExcemptCheck $user $group $flags"
("LOGIN" arm line 2)
invoked from within
"switch -- $event {
CLOSE {
iputs ".-\[Close\]-----------------------------------------------------------------."
if {[..."
(procedure "::nxTools::Close::Main" line 7)
invoked from within
"::nxTool

neoxed
09-01-2007, 03:34 PM
so many these error:

08-31-2007 20:09:29 "..\scripts\nxTools\nxClose.tcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
can't read "user": no such variable
while executing
"ExcemptCheck $user $group $flags"
("LOGIN" arm line 2)
invoked from within
"switch -- $event {
CLOSE {
iputs ".-\[Close\]-----------------------------------------------------------------."
if {[..."
(procedure "::nxTools::Close::Main" line 7)
invoked from within
"::nxTool
That would be an ioFTPD bug, as it's not setting the "user" variable.

hukker
09-02-2007, 03:01 AM
Its working fine here... nxtools 1.0.6 ioftpd 6.2.1
I get no such errors...

rolan: could you copy paste the site close part of nxtools.conf

rolan
09-02-2007, 06:38 AM
Its working fine here... nxtools 1.0.6 ioftpd 6.2.1
I get no such errors...

rolan: could you copy paste the site close part of nxtools.conf

you mean this?

#### Site Close ############################################
#
# - Kick non-exempted users when the site is closed.
# - Allows certain users, groups, or flags to login when site is closed.
#
set close(KickOnClose) True
set close(UserNames) "sitebot ioFTPD"
set close(GroupNames) ""
set close(Flags) ""

hukker
09-02-2007, 08:27 AM
Using the settings below wont give you the error you get in systemerror.log
set close(KickOnClose) True
set close(UserNames) "sitebot transfer"
set close(GroupNames) "SiteOp"
set close(Flags) "M1N"

On the other hand when I tried the exact same settings as rolan... I got the exact same error in the log file... seems it has something to do with the empty fields he is using.

NeoXed can you confirm this might be a bug he stubmled upon?

neoxed
09-02-2007, 12:39 PM
Doesn't matter what those variables are set to.

If the $user variable is not being set it's because ioFTPD is not setting it.

Yil
09-04-2007, 05:32 PM
Double check etc\ioftpd.env contains the line:

USER=%[$user]

rolan
09-05-2007, 12:48 AM
Using the settings below wont give you the error you get in systemerror.log
set close(KickOnClose) True
set close(UserNames) "sitebot transfer"
set close(GroupNames) "SiteOp"
set close(Flags) "M1N"

On the other hand when I tried the exact same settings as rolan... I got the exact same error in the log file... seems it has something to do with the empty fields he is using.

NeoXed can you confirm this might be a bug he stubmled upon?



Double check etc\ioftpd.env contains the line:

USER=%[$user]

not empty now, and had contain this user variable, but remain this error.

hukker
09-05-2007, 09:40 AM
Double check etc\ioftpd.env contains the line:

USER=%[$user]

yil: Its there alright.